Re: Re: Regex

From: Date: Fri, 27 Jul 2012 19:28:45 +0000
Subject: Re: Re: Regex
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-318581@lists.php.net to get a copy of this message
On 7/27/2012 2:56 PM, David Harkness wrote:
On Fri, Jul 27, 2012 at 11:43 AM, Al <news@ridersite.org> wrote:
"%[\w\d,.]%"
"\w" will match digits so "\d" isn't necessary, but it will also match underscores which isn't desired. David You're correct, I forgot about the darn _ and \w includes digits
So, how's about this. "%(?!_)[\w,.]%"

« previous php.general (#318581) next »