T
tJ
Hi
I'd like to validate a string input as a phone number using a regex
matcher. This is the criteria:
* at least 10 numbers,
* only numeric and the following special characters should be allowed:
'+' '-' '(' ')' and spaces
The closest I've been able to find is ^[-\d()\s]*$ :-(
Thank you in advance,
tJ
I'd like to validate a string input as a phone number using a regex
matcher. This is the criteria:
* at least 10 numbers,
* only numeric and the following special characters should be allowed:
'+' '-' '(' ')' and spaces
The closest I've been able to find is ^[-\d()\s]*$ :-(
Thank you in advance,
tJ