Re: Strip Everything But Letters and Numbers?
| From: | Marek Kilimajer | Date: | Wed, 15 Sep 2004 23:53:46 +0000 |
| Subject: | Re: Strip Everything But Letters and Numbers? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196806@lists.php.net to get a copy of this message | ||
Jeff Oien wrote:
Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff$string = preg_replace('/[^a-z0-9]/i', '', $string);