RE: Re: Can someone help me build a regular expression?

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

 



> -----Original Message-----
> From: Matthew Weier O'Phinney [mailto:matthew@xxxxxxxxxx]
> Sent: Tuesday, May 03, 2005 6:24 PM


> (The person who posted that should have written it as PHP to avoid
> confusion: preg_match('/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/', $string);)

Also, the RegEx is incorrect since it should match a 2 or 3 digit
number, with a single digit afterwards. This one matches 9abcd.3333

Correct: "^[0-9]{2,3}\.[0-9]{1}$"

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/Systemdeveloper

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