Re: regular expressions
| From: | pete M | Date: | Thu, 14 Apr 2005 13:24:00 +0000 |
| Subject: | Re: regular expressions | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213077@lists.php.net to get a copy of this message | ||
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_BADRPTWell, this should work (tested and all ) $pattern="|font\-size:.*?;|si"; $txt = preg_replace( $pattern, "", $txt ); Erwin