Article View: be.comp.programming
Article #1901Re: Perl
From: Nitro
Date: Wed, 03 Nov 2004 14:59
Date: Wed, 03 Nov 2004 14:59
21 lines
1621 bytes
1621 bytes
On Wed, 03 Nov 2004 09:57:35 +0000, Philip Paeps wrote: > 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 IDD Chop, chop deed het merci
Technical Details
Message-ID:
<pan.2004.11.03.14.59.40.271302@skynet.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!syros.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mailReferences:
<pan.2004.11.03.09.47.35.710803@skynet.be> <4188ab8f$0$43451$e4fe514c@news.xs4all.nl>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!news1.google.com!news.glorb.com!syros.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mail From: Nitro <nitroglycerine@skynet.be> Newsgroups: be.comp.programming Subject: Re: Perl Date: Wed, 03 Nov 2004 15:59:45 +0100 Organization: KULeuvenNet Lines: 22 Message-ID: <pan.2004.11.03.14.59.40.271302@skynet.be> References: <pan.2004.11.03.09.47.35.710803@skynet.be> <4188ab8f$0$43451$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ikaria.belnet.be 1099493982 12185 134.58.127.12 (3 Nov 2004 14:59:42 GMT) X-Complaints-To: abuse@belnet.be NNTP-Posting-Date: Wed, 3 Nov 2004 14:59:42 +0000 (UTC) User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown@bluebird.kotnet.org X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)