Regex Tester
Test your regular expression against a string. See all matches and capture groups.
Flags:
About Regular Expressions
Regular expressions are supported in most programming languages and tools. This tester uses JavaScript's RegExp, so the syntax matches JS (and is similar to other languages). Use it to debug patterns before adding them to your code.
Frequently Asked Questions
What is a regular expression?
A regular expression (regex) is a pattern that describes text. You can use it to search, replace, or validate strings. This tool helps you test your pattern against sample text and see matches and groups.
What flags are supported?
g = global (all matches), i = case-insensitive, m = multiline (^ and $ match line boundaries). Combine them, e.g. gi for global case-insensitive.
Is my data sent to a server?
No. All regex testing runs in your browser. Your pattern and test string never leave your device.