I want a very simple Regex for Javascript validation of phone number, which allows 10 digits and checks min numbers should be 10 and max 12 including - dash two times for ex. 123-123-1234
I have found some on internet, but none of them is working for min / max length.
Looking forward for quick response here.
Thanks !
You could do this
See it here on Regexr
(?!...)is a negative lookahead assertion(?=...)is a positive lookahead assertion