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:Matthew Weier O'Phinney (matt@garden.org)
Date:May 3, 2005 9:23:23 am
List:net.php.lists.php-general

* Rory Browne <rory@gmail.com>:

You mite try this. I know that this work with perl.

=~ m/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/

I'm not sure what the initial m does(I'm not a perl person),

The 'm' is an optional flag indicating that a 'match' regexp (versus a substitution or transliteration) follows. It's typically only necessary in perl if using delimiters other than / around the regexp.

(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);)