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 
[EMAIL PROTECTED]      sufficiently snide about becomes  
http://electricjellyfish.net/     a feature.       -- Dan Sugalski

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to