🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12704

Re: Un poco de perl

#12704
From: Adrian Rossiter
Date: Tue, 29 May 2001 09:48
16 lines
1555 bytes
On Mon, 28 May 2001 23:03:56 +0200, Pere Pujal Carabantes wrote:
> my ($compext, $dumpext) =
> ($info =~ /AMANDA: FILE \d+ \w+ \S+ lev \d+ comp (\S+) program (\S+)/);
...
>$info es una cadena como �sta:
>AMANDA: FILE 20010528 hola.fou.net /etc lev 1 comp .gz program /bin/gtar 

\w no incluye el '.' . En vez de \w+ quiz�s podr�as usar otro \S+

$info =~ /AMANDA: FILE \d+ \S+ \S+ lev \d+ comp (\S+) program (\S+)/;

Adrian.
-- 

Adrian Rossiter   -   adrian_r@teleline.es
http://teleline.terra.es/personal/adrian_r
Technical Details
Message-ID: <slrn9h6s48.mj.adrianr@localhost.adrian_r>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!193-152-230-87.uc.nombres.ttd.ES!not-for-mail
References: <slrn9h5f9s.bgj.pere@hola.fou.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,d2575f4e35b2e31e
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-29 02:54:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!193-152-230-87.uc.nombres.ttd.ES!not-for-mail
From: adrianr@jazzfree.com (Adrian Rossiter)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Un poco de perl
Date: Tue, 29 May 2001 09:48:56 +0000
Lines: 18
Message-ID: <slrn9h6s48.mj.adrianr@localhost.adrian_r>
References: <slrn9h5f9s.bgj.pere@hola.fou.net>
Reply-To: adrian_r@teleline.es
NNTP-Posting-Host: 193-152-230-87.uc.nombres.ttd.es (193.152.230.87)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 991130094 1544544 193.152.230.87 (16 [70272])
X-Orig-Path: adrianr
User-Agent: slrn/0.9.6.2 (Linux)