I'm using /^\d{3}\ ?-? ?\d{3}\ ?-? ?\d{4}$/; to validate US phone numbers. Can anyone tell me how to modify this expression to make () optional on the first set of numbers.
For example: it should work for (123)234-2345 , 123-345-4567 , 123 - 345 - 4567 , 123345-6789