megabyte214
Programmer
I am trying to use a regular expression to validate phone number as format (585)555-1212.
I tried it 2 ways:
["regexp=^\([0-9]{3}\)[0-9]{3}\-[0-9]{4}$", "Please give your Phone as format (585)555-1212"]
^\(\d{3}\)\d{3}\-\d{4}$
I tried it 2 ways:
["regexp=^\([0-9]{3}\)[0-9]{3}\-[0-9]{4}$", "Please give your Phone as format (585)555-1212"]
^\(\d{3}\)\d{3}\-\d{4}$