Test regular expressions against any text. See matches highlighted in real time with group details and match positions.
A pattern of characters defining a search. Used for finding, matching, and manipulating text in programming and text editors.
g finds all matches (not just first), i makes search case-insensitive, m makes ^ and $ match line boundaries, s makes dot match newlines.
For Indian 10-digit mobile numbers use the pattern starting with 6-9 followed by 9 more digits. For international numbers use a pattern that allows an optional plus sign followed by 7-15 digits.
.* matches zero or more characters including empty string. .+ requires at least one character to be present.
A basic pattern checks for text, an @ symbol, more text, a dot, and a domain extension. For production use, consider a dedicated validation library.