#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2011
    Posts
    9
    Rep Power
    0

    The regex for a phone number isn't working


    I have a regex for a phone number, but when I test it in a WordPress form it doesn't work. The regex is: [/^(02|03|04|07|08)\d{8}$/]. By the way it is an Australian phone number and the phone number should like something like this 0267555888, when entered into the form. Could someone please tell me why this isn't working for me? Thanks in advance.
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,749
    Rep Power
    9397

IMN logo majestic logo threadwatch logo seochat tools logo