8 messages in net.php.lists.php-generalRE: [PHP] Can someone help me build a...
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] Can someone help me build a regular expression?Actions...
From:mwes...@sola.com.au (mwes@sola.com.au)
Date:May 2, 2005 4:12:17 pm
List:net.php.lists.php-general

Thanks to all that posted with help. I've got a book about regular expressions but it's all very new to me.

-----Original Message----- From: Jason Sweeney [mailto:jas@designshift.com] Sent: Monday, 2 May 2005 9:50 PM To: Matthew Western, IT Support, Lonsdale Cc: php-@lists.php.net Subject: Re: [PHP] Can someone help me build a regular expression?

Give this a shot:

^[0-9]{2,3}\.[0-9]$

Returns regex that begins with 2-3 digits, followed by a period, and ends with one digit.

jason sweeney jason.designshift.com

mwes@sola.com.au wrote:

Hi All,

I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers exist. I cheated and downloaded a regular expression someon else had used and that works nicely. I wish to validate the text box in the format of:

xXX.X

With the upper case Xs being a required number and the lower case x being allowed but not needed.

Can anybody help me?

Ta Matthew