Reply to Re: [PHP] regular expressions

Your name:

Reply:


Posted by pete M on 09/28/40 11:13

Thankyou
Diolch
danka

There seems to be a big difference between eregi_replace() and preg_replace

Am reding teh Sams - Regular Expressions in 10 mins bu the syntax seems
ot be different. !!

regards
pete

Erwin Kerk wrote:
> pete M wrote:
>
>> The pattern
>>
>> $pattern = 'font\-size:.*?\;';
>>
>> throwns the error
>> eregi_replace(): REG_BADRPT
>>
>
> Well, this should work (tested and all )
>
> $pattern="|font\-size:.*?;|si";
> $txt = preg_replace( $pattern, "", $txt );
>
>
> Erwin

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация