Re: Regex
| From: | shiplu | Date: | Fri, 27 Jul 2012 17:54:54 +0000 |
| Subject: | Re: Regex | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318578@lists.php.net to get a copy of this message | ||
>#[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 ]. 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.
--
Shiplu.Mokadd.im
ImgSign.com | A dynamic signature machine
Innovation distinguishes between follower and leader