Re: Re: Regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 7/27/2012 2:56 PM, David Harkness wrote:
On Fri, Jul 27, 2012 at 11:43 AM, Al <news@xxxxxxxxxxxxx> 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,.]%"


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux