Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2002 21:14:46 +0600 (YEKST)
From:      Ilia Chipitsine <ilia@cgu.chel.su>
To:        Bernd Walter <ticso@cicely8.cicely.de>
Cc:        questions@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: Perl thing
Message-ID:  <Pine.BSF.4.10.10204052113090.13313-100000@jane.poka.net>
In-Reply-To: <20020405144146.GR51284@cicely8.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

> 
> -- 
> B.Walter              COSMO-Project         http://www.cosmo-project.de
> ticso@cicely.de         Usergroup           info@cosmo-project.de
> 

Regards, (Наилучшие пожелания)
Ilia Chipitsine (Илья Шипицин)



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?Pine.BSF.4.10.10204052113090.13313-100000>