🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Expresiones regulares (II)

#9185
From: Alvaro Sanchez-Mariscal
Date: Sat, 24 Aug 2002 11:22
40 lines
2235 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>     <table>.*?</table>

Exacto. Tras una expresi�n regular, puedes a�adirle unos modificadores
que indicar�n el n�mero de veces que debe ocurrir ese patr�n:

*		Ninguna o m�s veces
+		Una o m�s veces.
?		Ninguna o una vez.
{n,m}	Entre n y m veces
{n,}	n o m�s veces.
{n}		n veces.

Estos modificadores, tal y como est�n, indican que como m�ximo, deben
ocurrir esas veces (espero no dejarme ninguno).

Si a cada uno de ellos les a�ades "?", estar�s obligando a que ocurran,
como m�nimo, ese n�mero de veces.

La necesidad de especificar el cuantificador m�ximo y m�nimo se debe a
que por defecto, Perl intenta encontrar la mayor porci�n de la variable
que conincide con el patr�n a buscar.

Salu2.

- -- 
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Alvaro Sanchez-Mariscal
mariscal@di.uc3m.es
Debian GNU/Linux 3.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Z2s7JKROHiQUCxMRAtfcAJwPokqfwjjapHM+4jUwtcda2p5sZACdFwca
0+OQu9m3RWVixCAqur7+OmA=
=VqKi
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <ak7q8v$1g7qk1$3@ID-146972.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!213.37.50.202!not-for-mail
References: <3D66CF2D.6040907@yahoo.es> <slrnamenll.dq2.direccion_en_la_firma.address_in_signature@jupiter.olimpo>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,89fc7e4845da3e67
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-08-24 04:22:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!213.37.50.202!not-for-mail
From: Alvaro Sanchez-Mariscal <mariscal-NOSPAM@di.uc3m.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Expresiones regulares (II)
Date: 24 Aug 2002 11:22:07 GMT
Organization: Universidad Carlos III de Madrid
Lines: 40
Message-ID: <ak7q8v$1g7qk1$3@ID-146972.news.dfncis.de>
References: <3D66CF2D.6040907@yahoo.es> <slrnamenll.dq2.direccion_en_la_firma.address_in_signature@jupiter.olimpo>
NNTP-Posting-Host: 213.37.50.202
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1030188127 50588289 213.37.50.202 (16 [146972])
User-Agent: slrn/0.9.7.4 (Linux)