Re: regular expressions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -- ------------------------------------------------------------------------ mail : erwin@xxxxxxxxx, erwin@xxxxxxxxxxx, erwinkerk@xxxxxxxxx msn : erwin@xxxxxxxxx jabber : erwin@xxxxxxxxxxxxxxxx skype : erwinkerk hello : vlits ------------------------------------------------------------------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux