preg_replace
| From: | Scott | Date: | Mon, 11 Feb 2002 17:14:45 +0000 |
| Subject: | preg_replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84293@lists.php.net to get a copy of this message | ||
Can someone guide me on preg-replace (or other option). I have an array
that I am splitting, but before I do that I want to remove all dashes(-),
periods (.) and colons (;). Here is what I tried:
$fields = preg_match_all("[.:-]", "", $policy[$p]);
When I do everything remains in the file, is there a perl similar //g
global switch I might be missing.
Thanks,
-Scott
--