Regular expression to
accept only numbers with max 2 dashes (no 2 dashes together)
i.e.
123-345-567 YES
Or
-123345567- YES
Or
--123456789 NO
Or
As1234567 NO
Or
#355534gg NO
Etc.
accept only numbers with max 2 dashes (no 2 dashes together)
i.e.
123-345-567 YES
Or
-123345567- YES
Or
--123456789 NO
Or
As1234567 NO
Or
#355534gg NO
Etc.
Comment