🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1898

Perl

#1898
From: Nitro
Date: Wed, 03 Nov 2004 09:47
10 lines
1267 bytes
Hoe kan ik in perl \r\n achter een string uithalen?

Ik heb dit geprobeerd met een regular expression, maar dit blijkt niet zo
goed te gaan.

my $test = $in =~ m/(.*)\\r\\n/;

Dit zou toch alles voor de \r\n moeten teruggeven?

Nitro
Technical Details
Message-ID: <pan.2004.11.03.09.47.35.710803@skynet.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!aotearoa.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,f11ad0c563cf4be6,start
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!newsgate.cistron.nl!aotearoa.belnet.be!ikaria.belnet.be!news.belnet.be!not-for-mail
From: Nitro <nitroglycerine@skynet.be>
Newsgroups: be.comp.programming
Subject: Perl
Date: Wed, 03 Nov 2004 10:47:36 +0100
Organization: KULeuvenNet
Lines: 10
Message-ID: <pan.2004.11.03.09.47.35.710803@skynet.be>
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 1099475251 29597 134.58.127.12 (3 Nov 2004 09:47:31 GMT)
X-Complaints-To: abuse@belnet.be
NNTP-Posting-Date: Wed, 3 Nov 2004 09:47:31 +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/)