Article View: chile.comp.programacion
Article #876Re: ayuda php
From: Hector Vergara R.
Date: Fri, 06 Jul 2007 17:38
Date: Fri, 06 Jul 2007 17:38
38 lines
1990 bytes
1990 bytes
la extension pcre (perl compatible regular expressions) es mas r�pida que
ereg.
$data = preg_replace("/<img(.*?)\/>/", "", $data);
Saludos, H�ctor.
PD: porque nombras las variables capitalizadas? (primera letra mayuscula)
"+mArkO+" <kitim@porta.cl> wrote in message
news:f6lp9e$55j$1@news.nivel5.cl...
> me contesto solo
>
> $Data = ereg_replace("<img(.*)'5' />","",$Data);
>
> me corrigen si hay una mas optima y elegante
>
>
> "+mArkO+" <kitim@porta.cl> escribi� en el mensaje
> news:f6lntl$4r5$1@news.nivel5.cl...
>> alguien me podria decir como poder eliminar las etiqueta IMG que son
>> leidas desde un html
>> puedo leer el archivo como texto, pero la idea es filtrar estas
>> etiquetas.
>>
>>
>> estas son las imagenes, solo cambia el src
>>
>> <img align='left' src='recicla1.jpg' width='150' height='100' hspace='5'
>> vspace='5' />
>>
>> como seria la expresion regular a usar?
>>
>>
>>
>>
>
>
Technical Details
Message-ID:
<f6lumi$6dc$1@news.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!news.nivel5.cl!not-for-mailReferences:
<f6lntl$4r5$1@news.nivel5.cl> <f6lp9e$55j$1@news.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,471121716cd117bc X-Google-Attributes: gid1593cb,public,usenet X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!bolzen.all.de!fu-berlin.de!news.nivel5.cl!not-for-mail From: "Hector Vergara R." <hvergara@gmail.com> Newsgroups: chile.comp.programacion Subject: Re: ayuda php Date: Fri, 6 Jul 2007 13:38:21 -0400 Organization: Varios Lines: 40 Message-ID: <f6lumi$6dc$1@news.nivel5.cl> References: <f6lntl$4r5$1@news.nivel5.cl> <f6lp9e$55j$1@news.nivel5.cl> NNTP-Posting-Host: pc-70-221-45-190.cm.vtr.net X-Trace: news.nivel5.cl 1183743506 6572 190.45.221.70 (6 Jul 2007 17:38:26 GMT) X-Complaints-To: news@news.nivel5.cl NNTP-Posting-Date: Fri, 6 Jul 2007 17:38:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response