My requirement is a bit different from the normal international phone number validations.
I want a regex which:
- Need to limit the phone number to 10.
- If a "-" is entered, then a 4 max character limit should be set before the "-", and after that 10 character limit.
Example : 1234567890,123456789, 0000-1234567890, 000-123456789 (area code- phonennumber)
Can someone point me to a regex which validates this? I did look through a lot of links, links.
Thanks