Basically, the input field is just a string. People input their phone number in various formats. I need a regular expression to find and convert those numbers into links.>
Afaik, no phone enters the other characters, so why not replace [^0-9] with '' ?
[^0-9]
''