Connecting Tech Pros Worldwide Help | Site Map

SimpleRegular Expression validations

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 02:30 PM
J.D. Buehls
Guest
 
Posts: n/a
Default SimpleRegular Expression validations

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, 02:30 PM
Evertjan.
Guest
 
Posts: n/a
Default 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)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.