Re: Regex

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

 



Am 27.07.2012 19:54, schrieb shiplu:
#[0-9a-zA-Z,\.]#


You should escape out that period as it will match any character otherwise.
Thanks,
Ash


Ash, Thats not true. In character class only meta-characters are \ ^ - [

And the dash only when it's not the first, or the last in the class.

and ]. This is the rule of PCRE (see
http://www.pcre.org/pcre.txt<http://www.pcre.org/pcre.txt#CHARACTERS%20AND%20METACHARACTERS>).
I assume we are talking about pcre as everybody used delimiter here which
is required in pcre.



--
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