So, after some user confusion, I need to tweak a regular expression for all phone number variations you could think of.
I currently have the following regular expression:
^[+]?[-\s.]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$
It matches fairly well, but I'd like to be able to match this to the following variations:
+44 01726 400480
+44 1726 400480
+44 01726 400 480
+44 1726 400 480
01726 400480
01726 400 480
N.B. I understand that similar questions to this have been asked previously, but I feel that adding the above variations would be perfect for the community.