By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,504 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,504 IT Pros & Developers. It's quick & easy.

SimpleRegular Expression validations

P: 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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
J.D. Buehls wrote on 13 feb 2004 in comp.lang.javascript:
"70122*"
(5 digits ending with an '*')
/\^d{5}\*$/
"07/04/1996" or "7/4/1996"


/^(((\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)
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.