[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
OT: Quickie RegEx question for gurus.
Soz, but this is killing me - it should be soooooo simple but it ain't :(
I need to validate that a string is at least 3 characters long.
fine, I use an expression of:
/^.{3,}$/
Works fine....except if there is a new line in the string being searched -
then
I just get nothing :(
I tried:
/^.{3,}\s*\S*$. which, would appear to say "Match at least three
characters
(not \n though) then 0 or more white space followed by 0 or more non white
space.
Still don't work :(
any thoughts peeps?
thanks,
Tony
UK Home Automation Meet 2004 - BOOK NOW!
http://www.ukha2004.com
http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe: ukha_d-subscribe@xxxxxxx
Unsubscribe: ukha_d-unsubscribe@xxxxxxx
List owner: ukha_d-owner@xxxxxxx
Home |
Main Index |
Thread Index
|