I'm trying to write a regex that can detect if a user's phone number matches a given string, regardless of formatting (ie. only matching on integer characters).
For example, given the phone number '5555555555', I want the numbers '555-555-5555' and '(555) 555-5555' to be considered a match.
Any ideas?