The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Laser Launch New C-Bus Website!


[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

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.