Re: regular expressions ?
| From: | Richard Lynch | Date: | Thu, 27 Jan 2005 17:38:03 +0000 |
| Subject: | Re: regular expressions ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207514@lists.php.net to get a copy of this message | ||
Zouari Fourat wrote:
> Robin :
> $i='2';
> if (preg_match('/^(20|1[0-9]|1-9])$/', $i)) {
You are missing a [ before the 1-9 in after the last |
The regex WILL work if you type it correctly :-)
--
Like Music?
http://l-i-e.com/artists.htm