Re: [PHP-WIN] Re: ereg-replace removing whitespace...

2003-12-03 Thread Bobo Wieland
difference between ereg_replace and preg_replace except regular expression syntax and speed? Does preg_replace allways work without any extensions in php? .bobo - Original Message - From: "Justin Patrin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesda

[PHP-WIN] Re: ereg-replace removing whitespace...

2003-12-02 Thread Justin Patrin
I don't use ereg myself, but with preg_replace you could do: $str = preg_replace('/\[\/URUB\]\s*/', '', $str); Bobo Wieland wrote: Hi... I'm trying to use ereg_replace to replace "[/URUB]" with "" The problem is that ther might, and might not, be any number of trailing whitespaces after the [/U