SimpleRegular Expression validations

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J.D. Buehls

    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
  • Evertjan.

    #2
    Re: SimpleRegular Expression validations

    J.D. Buehls wrote on 13 feb 2004 in comp.lang.javas cript:[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)

    Comment

    Working...