Connecting Tech Pros Worldwide Forums | Help | Site Map

SimpleRegular Expression validations

J.D. Buehls
Guest
 
Posts: n/a
#1: Jul 20 '05
I have 3 fields left that I cant get a working reg. exp for. I am
placing them in parentheses:

"70122*"
(5 digits ending with an '*')

"07/04/1996" or "7/4/1996"
(this is a text field)

If anyone could help me out it would be much appreciated.

Thanks,
Julie

Evertjan.
Guest
 
Posts: n/a
#2: Jul 20 '05

re: SimpleRegular Expression validations


J.D. Buehls wrote on 13 feb 2004 in comp.lang.javascript:[color=blue]
> "70122*"
> (5 digits ending with an '*')[/color]

/\^d{5}\*$/
[color=blue]
> "07/04/1996" or "7/4/1996"[/color]

/^(((\d{2}\/){2})||((\d\/){2})){2}\d{4}$/


not testing for valid dates

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Closed Thread