Which of the following regular expressions is the correct expression for matching a mobile number stored in following format:
+YY-XXXXXXXXXX
YY is the country code, the rest of the number is a mobile number?.
A.
You need to provide a backslash as an escape character for "+".
Another important point is that you cannot use "\b" in starting and ending if the first or last character of the string is not a word character.