Re: regex for cleaning up username

From: Date: Mon, 23 Jul 2001 09:01:57 +0000
Subject: Re: regex for cleaning up username
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59157@lists.php.net to get a copy of this message
> thinking it may be easier to parse for only allowed characters. *much* better idea. Try: preg_match('/[^\w]/', $string) to find all non-alphanumeric+underscore

« previous php.general (#59157) next »