>- see footer for list info -<
Worked it out almost as soon as I posted it, should be ^[1-9][0-9]{3}, right ?
Well, seems to work at first glance ...
Adrian Lynch <[EMAIL PROTECTED]> wrote:>- see footer for list info -<
Wouldn't the ^ negate the range? Try it without.
Ade
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew Davidson
Sent: 03 October 2005 15:39
To: [email protected]
Subject: [CF-Dev] easy RegExp ...
>- see footer for list info -<
Hi All,
OK, I admit I am cr*p at RegExp, and I would normally google for the answer
to this, but up against a major deadline. Could anyone give me a RegExp (for
a CFINPUT) that would limit the input to ...
- HAS to be 4 characters (all numeric, no decimal points, cannot start with
a zero)
- First character can only be 1 to 9
- Next 3 characters can be 0 to 9
... my best guess was [^1-9][0-9]{3}, but that does not seem to work.
Cheers !
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<