Hi guys i need some help for a regular expression to validate phone numbers.
thank you in advanced
valid input:
+31 (0)70-1234567
070-1234567
+31 (0)701-123456
0701-123456
+31 (0)6-12345678
06-12345678
Hi guys i need some help for a regular expression to validate phone numbers.
thank you in advanced
valid input:
+31 (0)70-1234567
070-1234567
+31 (0)701-123456
0701-123456
+31 (0)6-12345678
06-12345678
Is it line break after +31 (0)70-1234567 and the number continuing, or it is an 2nd variant of the correct number ?
these are all valid inputs. it’s only possible to enter one phone number at the time.
~^(\+\d+\s\(\d\))?\d+-\d+$~U
not tested