How to validate phone numbers using regex
Better option… just strip all non-digit characters on input (except ‘x’ and leading ‘+’ signs), taking care because of the British tendency to write numbers in the non-standard form +44 (0) … when asked to use the international prefix (in that specific case, you should discard the (0) entirely). Then, you end up with values … Read more