8 messages in net.php.lists.php-generalRE: [PHP] Re: Can someone help me bui...
FromSent OnAttachments
mwes...@sola.com.auMay 2, 2005 1:09 am 
Jason SweeneyMay 2, 2005 5:19 am 
Thomas BonhamMay 2, 2005 5:51 am 
mwes...@sola.com.auMay 2, 2005 4:12 pm 
Rory BrowneMay 2, 2005 4:30 pm 
Jochem MaasMay 2, 2005 5:06 pm 
Matthew Weier O'PhinneyMay 3, 2005 9:23 am 
Kim MadsenMay 4, 2005 6:03 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [PHP] Re: Can someone help me build a regular expression?Actions...
From:Kim Madsen (km@comx.dk)
Date:May 4, 2005 6:03:38 am
List:net.php.lists.php-general

-----Original Message----- From: Matthew Weier O'Phinney [mailto:matt@garden.org] 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}$"