hi Team,
i have different Mobile No’s
- 8880344456
- +918880344456
- +91 8880344456
- +91-8880344456
- 08880344456
- 918880344456
and i want to build a reg for the same of whatever format it is
hi Team,
i have different Mobile No’s
and i want to build a reg for the same of whatever format it is
Referring to the title, we can check indian phone nos on the +91 like:
As other countries can also begin with e.g a 08… we would have to check more, but recommend to add more context on this task
but if i want to validate whether after + the mobile number should have 9 or 8 then?
we did as with the rule
the 91 starter is checked
I believe that the number is an indian number as it starts with +91 country code
Inside the for each iteration of matches
you can give an if condition like
currentitem.tostring.startswith(“+91”)
Try this
(+91[-\s]?)?[0]?(91)?[789]\d{9}
Hey @devasaiprasad_K
you can use:
(?:\+?91[-\s]?)?0?\d{10}
or if numbers need to start from 91 or +91 you can use:
\+?91[-\s]?[89]\d{9}