Is the above regular expression will work for the following string?:Code:var patt1=/[0-9-]/;
974-45645654-45456445
5464565464
4654-4554565
I am trying to do regular expression for phone number and by that I mean every string that including only number and the "-" char.
but I don't want the "-" to appear in the beginning.


Reply With Quote
Bookmarks