From owner-freebsd-questions Fri Apr 5 7:26:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from isris.pair.com (isris.pair.com [209.68.2.39]) by hub.freebsd.org (Postfix) with SMTP id 6298937BB21 for ; Fri, 5 Apr 2002 07:24:50 -0800 (PST) Received: (qmail 65915 invoked by uid 3130); 5 Apr 2002 15:24:15 -0000 Date: Fri, 5 Apr 2002 10:24:14 -0500 From: Garrett Rooney To: Ilia Chipitsine Cc: Bernd Walter , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Perl thing Message-ID: <20020405152414.GA49259@electricjellyfish.net> References: <20020405144146.GR51284@cicely8.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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