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

From: Date: Mon, 02 May 2005 23:30:27 +0000
Subject: Re: Re: Can someone help me build a regular expression?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-214355@lists.php.net to get a copy of this message
> 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), but the rest of the regex matches as follows. A string whose first character is a digit between 0 and 9. This is followed by an Upper case letter, and then two or three lower case letters. All that is followed by a period(or dot), after which may be a single-digit number, but nothing else. It matches the following: 1Abc.2 1Abcd.2 1Abc. 1Abcd. > > I'm still very new to this. But I'm trying to help. > Thomas > freeswimfreak@yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#214355) next »