From owner-freebsd-hackers Fri Apr 5 7:21:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from icc.cgu.chel.su (gw.csu.ru [195.54.14.5]) by hub.freebsd.org (Postfix) with ESMTP id 8F90E37B89E; Fri, 5 Apr 2002 07:18:02 -0800 (PST) Received: from mail.cgu.chel.su (mail.cgu.chel.su [195.54.14.68]) by icc.cgu.chel.su (8.11.6/8.11.6) with ESMTP id g35FHYt75688 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Fri, 5 Apr 2002 21:17:34 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: (from uucp@localhost) by mail.cgu.chel.su (8.11.6/8.11.2) with UUCP id g35FHTE51159; Fri, 5 Apr 2002 21:17:29 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: from localhost (localhost.cgu.chel.su [127.0.0.1]) by jane.poka.net (8.11.6/8.11.1) with ESMTP id g35FEkP13482; Fri, 5 Apr 2002 21:14:46 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Date: Fri, 5 Apr 2002 21:14:46 +0600 (YEKST) From: Ilia Chipitsine X-Sender: ilia@jane.poka.net To: Bernd Walter Cc: questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Perl thing In-Reply-To: <20020405144146.GR51284@cicely8.cicely.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-hackers" in the body of the message