Re: Having problems grasping reg ex
| From: | Nicole Amashta | Date: | Wed, 22 May 2002 15:23:03 +0000 |
| Subject: | Re: Having problems grasping reg ex | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13919@lists.php.net to get a copy of this message | ||
preg_replace("/[^a-z0-9]/i", '', $str);
R.S. Herhuth wrote:
I'm really struggling trying to grasp the concept of reg ex rfeplacement. I have been through the documentation and a few tutorials but I can't find something that shows me exactly how to return a string that contains nothing but alpha numeric characters, while stripping out all other characters. Couls someone please show me how to do this? Thanks, Ron