I need a phone validator with the following conditions:
- Optionally "+" at the start
- 0 or 1 hyphens
- At least 10 numbers
In Use the following regex: ^\+?(\d+)(-(\d+)|( \d+)+)?$
It works but it counts "+" and "-" too.
I can write for ex +123-45678
10 chars but only 8 numbers.
There should always be at least 10 numbers