Article View: be.comp.programming
Article #1899Re: Perl
From: Philip Paeps
Date: Wed, 03 Nov 2004 09:57
Date: Wed, 03 Nov 2004 09:57
23 lines
1509 bytes
1509 bytes
Nitro <nitroglycerine@skynet.be> wrote: > Hoe kan ik in perl \r\n achter een string uithalen? m/\r\n$/m? > Ik heb dit geprobeerd met een regular expression, maar dit blijkt niet zo > goed te gaan. > > my $test = $in =~ m/(.*)\\r\\n/; Waarom \\r\\n? > Dit zou toch alles voor de \r\n moeten teruggeven? Sure. Maar is het niet makkelijker om gewoon je string te choppen? - Philip -- Philip Paeps Please don't email any replies philip@paeps.cx I follow the newsgroup. The sun goes down just when you need it the most.
Technical Details
Message-ID:
<4188ab8f$0$43451$e4fe514c@news.xs4all.nl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mailReferences:
<pan.2004.11.03.09.47.35.710803@skynet.be>Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,f11ad0c563cf4be6
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!transit.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Sender: Philip Paeps <philip@loge.nixsys.be>
Message-ID: <4188ab8f$0$43451$e4fe514c@news.xs4all.nl>
From: Philip Paeps <philip+usenet@paeps.cx>
Subject: Re: Perl
Newsgroups: be.comp.programming
References: <pan.2004.11.03.09.47.35.710803@skynet.be>
Organization: Happily Disorganized
User-Agent: tin/1.7.7-20041029 ("Baleshare") (UNIX) (FreeBSD/6.0-CURRENT (i386))
Date: 03 Nov 2004 09:57:35 GMT
Lines: 23
NNTP-Posting-Date: 03 Nov 2004 10:57:35 CET
NNTP-Posting-Host: 195.144.77.45
X-Trace: 1099475855 news.xs4all.nl 43451 [::ffff:195.144.77.45]:49403
X-Complaints-To: abuse@xs4all.nl