preg_replace
| From: | Ben Miller | Date: | Fri, 05 Jun 2009 08:09:16 +0000 |
| Subject: | preg_replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-293648@lists.php.net to get a copy of this message | ||
I bought PHP & MySQL for DUMMIES and it shows me how to use special characters for pattern matching and I've figured out the basics of using preg_replace to replace pattern matches. What I am having trouble with, though, is figuring out how to replace anything that does not match the pattern. For example, I want to replace anything that is NOT an alphanumeric character. Any help would be appreciated. Thanks.
Ben