I'm trying to write a regular expression for an indian mobile number with +91 as optional before the number
The regEx that I have written is below:
^[\+91]?[7-9][0-9]{9}$
This isn't working properly, please help.
I'm trying to write a regular expression for an indian mobile number with +91 as optional before the number
The regEx that I have written is below:
^[\+91]?[7-9][0-9]{9}$
This isn't working properly, please help.
I think this should work. I've tested it on https://regex101.com/
/^((\+91?)|\+)?[7-9][0-9]{9}$/