Re: regular expression
| From: | liljim | Date: | Thu, 01 Nov 2001 11:40:26 +0000 |
| Subject: | Re: regular expression | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73144@lists.php.net to get a copy of this message | ||
Whooops,
Pasted wrong line. This should do it:
$string = preg_replace("/(\.*\/)+(.*?\.*\/)?/s", "", $string);
James