This is another question about a previous question I had asked yesterday. I want user to be allowed to type US phone numbers in the following formats.
(800)-555-1212
800-555-1212
and have it only check the database for numbers 8005551212
I've seen that regex like
/^[\+]?([0-9]*)\s*\(?\s*([0-9]{3})?\s*\)?[\s\-\.]*([0-9]{3})[\s\-\.]*([0-9]{4})[a-zA-Z\s\,\.]*[x\#]*[a-zA-Z\.\s]*([\d]*)/
may work but I'm not certain how to implement it into the code from the link I provided
I'm new to php and know nothing about regex. Any help is appreciated.