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

From: Date: Wed, 04 May 2005 13:04:00 +0000
Subject: RE: [PHP] Re: Can someone help me build a regular expression?
Groups: php.general 
Request: Send a blank email to php-general+get-214419@lists.php.net to get a copy of this message
> -----Original Message----- > From: Matthew Weier O'Phinney [mailto:matthew@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}$" -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper

« previous php.general (#214419) next »