In my futter mobile app, I am trying to validate a phone number using regex. Below are the conditions.
regex
You could make the first part optional matching either a + or 0 followed by a 9. Then match 10 digits:
+
^(?:[+0]9)?[0-9]{10}$
^
(?:[+0]9)?
0
[0-9]{10}
$
Regex demo