Tools of HumanityFree Calculators
Hosted on Hostinger — from $2.99/month.
Get Hosting →
Home/Dev Tools/Regex Tester

Regex Tester

Test regular expressions against any text. See matches highlighted in real time with group details and match positions.

/ /
Presets
Test String0 chars
Matches
Frequently Asked Questions
What is a regular expression?

A pattern of characters defining a search. Used for finding, matching, and manipulating text in programming and text editors.

What are common regex flags?

g finds all matches (not just first), i makes search case-insensitive, m makes ^ and $ match line boundaries, s makes dot match newlines.

How do I match a phone number with regex?

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.

What is the difference between .* and .+?

.* matches zero or more characters including empty string. .+ requires at least one character to be present.

How do I match an email address?

A basic pattern checks for text, an @ symbol, more text, a dot, and a domain extension. For production use, consider a dedicated validation library.