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:Jason Sweeney (jas@designshift.com)
Date:May 2, 2005 5:19:29 am
List:net.php.lists.php-general

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