Phone number validation regular expression consist one plus sign in start and preceding digits
asp.net-mvc-4, java, javascript, knockout.js, regex
Solution
I'd use this instead:
^\+?\d*$
Matches your + at the start, then any digit, dash, space, dot, or brackets.
See it in action: http://regex101.com/r/mS9gD7
Problem
I am trying to validate phone number but cannot. My requirement is phone number consist only of digits and + (plus symbol). The + can be only the first character. For example: +123456489 I am using this regular expression but it is not working: ``` /^\+(?:[0-9]??)$/ ``` Thanks in advance.