Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2002 10:24:14 -0500
From:      Garrett Rooney <rooneg@electricjellyfish.net>
To:        Ilia Chipitsine <ilia@cgu.chel.su>
Cc:        Bernd Walter <ticso@cicely8.cicely.de>, questions@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: Perl thing
Message-ID:  <20020405152414.GA49259@electricjellyfish.net>
In-Reply-To: <Pine.BSF.4.10.10204052113090.13313-100000@jane.poka.net>
References:  <20020405144146.GR51284@cicely8.cicely.de> <Pine.BSF.4.10.10204052113090.13313-100000@jane.poka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 05, 2002 at 09:14:46PM +0600, Ilia Chipitsine wrote:
> Salut, Bernd Walter !  
> 
> 
> On Fri, 5 Apr 2002, Bernd Walter wrote:
> 
> > On Fri, Apr 05, 2002 at 07:56:53PM +0600, Ilia Chipitsine wrote:
> > > Dear Sirs,
> > > 
> > > Perl has very useful "split" function, it "split"s a string according
> > > arbitrary regular expression. Is there's such a C function ?
> > > I'm moving few programs from Perl to C.
> > 
> > strsep(3)
> > Especially the exmaple in the manpage should be interesting for you.
> 
> :))))))))
> 
> it doesn't help with
> 
> @t = split(/from=<|>/,$a);
> 
> where "from<|>" is regex. strsep knows nothing about regex.

this does not belong on -hackers.  please keep the basic programming
questions on -questions, if you insist on discussing them on freebsd
mailing lists.

thanks,

-garrett 

-- 
garrett rooney                    Remember, any design flaw you're 
rooneg@electricjellyfish.net      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020405152414.GA49259>