Article View: es.comp.os.linux.programacion
Article #15174Re: [off topic] regex en perl
From: unikoke
Date: Thu, 03 Aug 2000 00:00
Date: Thu, 03 Aug 2000 00:00
38 lines
2176 bytes
2176 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 En el grupo: es.comp.os.linux.programacion Sobre:Re: [off topic] regex en perl Roger_J tecle� el mensaje: - ->J.A. Gutierrez tuvo la graciosa idea de escribir: - ->>Roger_J <Roger_J@sisbcn.buquebus.es> wrote: - ->> - ->>: La pregunta es facil, estoy tratando de usar una regex en perl del tipo - ->>: /$ip/ donde $ip es una variable, pero no se decirle al interprete - ->>: precisamente eso, que se trata de una variable y no de un literal. - ->> - ->> pues no tiene ningun misterio, es tal y como lo has puesto... - -> - ->Pues estare metiendo la pata en algun sitio, bueno seguire buscando - ->Gracias por el interes El $ es final de linea en una expresi�n regular, por lo que si no quieres usarlo como tal, debes escaparlo : /\$ip/ Prueba as�. Salu2 - -- ******************************************************** - ---Llave p�blica v�a E-mail. Asunto: Mandar clave PGP--- Debian 2.1 Slink + apt-get dist-upgrade = Debian 2.2 Potato If more of us valued food and cheer and song above hoarded gold, it would be a merrier world. -- J.R.R. Tolkien ******************************************************** -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5iSrIcq/HoGiXwMMRAnDqAJ46jHCKaVta+QB+TIOQmxZXyNNbfQCfVztk I4DVt9SwBi2nMVbIiU6wX8Y= =FBq7 -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrn8oiama.d0r.unikokeNOSPAMSOCAPULLO@localhost.localdomain>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8m6g45$f8v$1@news.unizar.es> <slrn8oehba.14v.Roger_J@localhost.localdomain>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,46ffa37a23b5b118 X-Google-Attributes: gidf86c8,public From: unikokeNOSPAMSOCAPULLO@bigfoot.com (unikoke) Subject: Re: [off topic] regex en perl Date: 2000/08/03 Message-ID: <slrn8oiama.d0r.unikokeNOSPAMSOCAPULLO@localhost.localdomain> X-Deja-AN: 654100294 Content-Transfer-Encoding: 8bit References: <8m6g45$f8v$1@news.unizar.es> <slrn8oehba.14v.Roger_J@localhost.localdomain> Content-Type: text/plain; charset=iso-8859-1 X-Trace: fu-berlin.de 965323943 6482506 62.82.36.139 (16 [33234]) Organization: Totalmente desorganizada Mime-Version: 1.0 User-Agent: slrn/0.9.6.2 (Linux) Reply-To: unikokeNOSPAMSOCAPULLO@bigfoot.com Newsgroups: es.comp.os.linux.programacion