preg_replace (underscore)
| From: | Shawn McKenzie | Date: | Mon, 28 Oct 2002 23:46:17 +0000 |
| Subject: | preg_replace (underscore) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121791@lists.php.net to get a copy of this message | ||
Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they
alpha-numeric?
I had to do this preg_replace("^\W|_^","",$str);
TIA,
Shawn