
November 26th, 2008, 06:43 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Posts: 76
Time spent in forums: 1 Day 11 m 50 sec
Reputation Power: 10
|
|
Quote: | Originally Posted by ManiacDan It shouldn't throw an error unless you're using it as your delimiter:
PHP Code:
$new = preg_replace("#/+#", "/", $old);
-Dan |
I had a feeling it may have had something to do with using '/' as a delimiter. I should probably put some time asside to read up on the fundamentals of regex!
Your sample code works perfectly, thankyou very much!
Matt.
|