Looking for US Phone validation Javascript

Discussion in 'JavaScript' started by ranacseruet, Dec 8, 2009.

  1. #1
    Hi, Can anyone provide me the Us Phone validation regular expression for using with javascript?

    Regards
     
    ranacseruet, Dec 8, 2009 IP
  2. chadsmith

    chadsmith Peon

    Messages:
    82
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is there a certain format you're looking for? In my Google Voice Firefox addon I use:

    (?:\([2-9][0-8]\d\)\ ?|[2-9][0-8]\d[\- \.\/]?)[2-9]\d{2}[- \.\/]?\d{4}\b
    Code (markup):
    To check for nnn-nnn-nnnn, nnnnnnnnnn, (nnn) nnn-nnnn, nnn.nnn.nnnn and so on
     
    chadsmith, Dec 8, 2009 IP
  3. ranacseruet

    ranacseruet Peon

    Messages:
    302
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hello, i already got one on net. Thanks anyway :)
     
    ranacseruet, Dec 9, 2009 IP