> -----Original Message-----
> From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED]
> 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

Reply via email to