Article View: chile.comp.programacion
Article #3440Expresiones regulares en php
From: HR_cl
Date: Thu, 20 Jan 2005 04:06
Date: Thu, 20 Jan 2005 04:06
8 lines
1185 bytes
1185 bytes
Hola, a alguien se le ocurre porque puede estar fallando la siguiente
expresion en php, pero no al hacerlo en .net por ejemplo (lo testeo desde
regexlib.com)?
$patron= "(\n|\s|)(\w+)\.(\w{2,4})(\n|\s|)";
ereg($patron, $contenido, $dominios);
La idea es encontrar los dominios dentro de $contenido.
Technical Details
Message-ID:
<csnapl$rsi$1@news1.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,efdb285567bc86fd,start X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail From: "HR_cl" <hr_cl@hotmail.com> Newsgroups: chile.comp.programacion Subject: Expresiones regulares en php Date: Thu, 20 Jan 2005 01:06:33 -0300 Organization: Varios Lines: 14 Message-ID: <csnapl$rsi$1@news1.nivel5.cl> NNTP-Posting-Host: 200.83.248.187 X-Trace: news1.nivel5.cl 1106194037 28562 200.83.248.187 (20 Jan 2005 04:07:17 GMT) X-Complaints-To: news@news1.nivel5.cl NNTP-Posting-Date: Thu, 20 Jan 2005 04:07:17 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original