Article View: es.comp.os.linux.programacion
Article #512Re: Ayuda con expresiones regulares
From: gamo
Date: Sat, 07 Apr 2007 10:29
Date: Sat, 07 Apr 2007 10:29
21 lines
1601 bytes
1601 bytes
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323328-1705782823-1175941766=:16976
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: QUOTED-PRINTABLE
On Sat, 7 Apr 2007, gamo wrote:
Otra opci=F3n corregida y m=E1s corta:
> sub validar {
> =09my $string =3D $_[0];
> =09return -1 if length($string)!=3D7;
>=09return -1 if ($string =3D~ /\s\S/); =09
> =09return 1;
> }
> # untested=20
>=20
> Saludos cordiales
--8323328-1705782823-1175941766=:16976--
Technical Details
Message-ID:
<Pine.LNX.4.64.0704071226570.16976@jvz.es>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feed.ac-versailles.fr!uvsq.fr!jussieu.fr!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amoReferences:
<fA7Rh.3556107$D7.6476545@telenews.teleline.es> <Pine.LNX.4.64.0704071129260.16935@jvz.es>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,dd1337191e711daf X-Google-Attributes: gidf86c8,public X-Google-Language: ENGLISH,ASCII Newsgroups: es.comp.os.linux.programacion Date: Sat, 7 Apr 2007 12:29:26 +0200 From: gamo <gamo@telecable.es> X-X-Sender: amo@jvz.es Reply-To: gamo@telecable.es Subject: Re: Ayuda con expresiones regulares In-Reply-To: <Pine.LNX.4.64.0704071129260.16935@jvz.es> Message-ID: <Pine.LNX.4.64.0704071226570.16976@jvz.es> References: <fA7Rh.3556107$D7.6476545@telenews.teleline.es> <Pine.LNX.4.64.0704071129260.16935@jvz.es> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1705782823-1175941766=:16976" NNTP-Posting-Host: 83.97.181.149 X-Trace: filemon1.isp.telecable.es 1175941624 83.97.181.149 (7 Apr 2007 12:27:04 +0200) Organization: TeleCable, S.A.U. Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feed.ac-versailles.fr!uvsq.fr!jussieu.fr!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!cm-83-97-181-149.telecable.es!amo