Regex not working
I need a regex for allowing only numbers + following characters (+, , ( ,) )
I have done this :
^-{0,1}\d+$
But this is taking only numbers ..how we can write it for the charecters as well?
Answers
Try the following:
^[0-9-.+ ()]+$
This would be the solution:
^[0-9\+\s\(\)]+$