Regex builder
ProblemRegular expressions are hard to write and harder to read, and one wrong character silently matches too much.
JavaScript: match Indian mobile numbers, optional +91, 10 digits starting 6–9
/^(?:\+91[- ]?)?[6-9]\d{9}$/
[6-9] — first digit of Indian mobiles; \d{9} — nine more digits.
✓ +91 9876543210 · ✓ 9876543210 · ✗ 5876543210 · ✗ 98765 43210
Immediate resultA tested regex for your flavour, explained token by token, with matching and non-matching examples.


