I am trying to verify the phone number but cannot.
My requirement is a phone number consisting only of numbers and + (plus a character). The + character can only be the first character.
For example: +123456489
I use this regex but it does not work:
/^\+(?:[0-9]??)$/
Thanks in advance.
source
share