Regex Tester
Test regular expressions (regex) free online. Visualize matches with color highlights, replace text and use 12 ready-made regex patterns (email, URL, IP, hex color and more).
//
Examples
Frequently asked questions
What is Regex (Regular Expression)?
Regex is a language for describing text patterns. It's used to validate formats (email, phone, URL), search and replace text, and extract information.
What are regex flags?
"g" applies the search throughout the text (global). "i" ignores case. "m" treats each line as a separate start/end.
What are capture groups?
Groups in parentheses ( ) capture parts of the text. In replacement, use $1, $2... to reference each captured group.
Does it work with any regex?
Yes, it uses JavaScript's native regex engine. All valid JavaScript expressions work here.
Is it free?
Yes, 100% free. Processing is 100% in-browser, no data sent to servers.
Was this tool helpful?