Indian Phone Number
beginnerMatches Indian mobile numbers with optional country code.
phoneindiamobilevalidation
Pattern
/(?:\+91[\s-]?)?[6-9]\d{9}/gTry It
0 of 6 strings matched
Explanation
Matches Indian mobile numbers starting with 6-9 (valid mobile prefixes) with exactly 10 digits total. Optional +91 country code.
Test Strings
Matching
- +91 9876543210
- 9876543210
- +91-8765432109
Non-matching
- 1234567890
- +91 1234567890
- 12345
Language Compatibility
| Language | Support |
|---|---|
| JS | Full support |
| PYTHON | Full support |
| JAVA | Full support |
| PHP | Full support |
| GO | Full support |
Code Snippets
const regex = /(?:\+91[\s-]?)?[6-9]\d{9}/g;
const text = "your text here";
const matches = text.match(regex);
console.log(matches);