Connecting Tech Pros Worldwide Help | Site Map

SimpleRegular Expression validations

  #1  
Old July 20th, 2005, 03:30 PM
J.D. Buehls
Guest
 
Posts: n/a
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
  #2  
Old July 20th, 2005, 03:30 PM
Evertjan.
Guest
 
Posts: n/a

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