Menu
I am using this code for checking for a proper phone number.
[CODE]$string_exp = “^[0-9 .-]+$”;
I would also like to have the string be acceptable if they entered the characters N/A in place of a phone number. Can someone tell me how to change this expression to accept these three additional characters as an “or” statement to the phone number characters?
I don’t fully understand the finer points of regular expressions, and haven’t been able to figure this one out.