← DevHelpers|Regex Tester

Regex Tester — Test Regular Expressions Online

Test and debug regular expressions in real time. Enter a regex pattern and some sample text to see live matches highlighted, inspect capture groups, and toggle flags — a fast online regex tester that helps you build patterns that work the first time.

Regex Tester – Test Regular Expressions Online

Flags
Matches: 0
0 / 0
Highlighted Matches
Capture Groups
No capture groups
Need a refresher on regex? Read: Regex Basics & Testing
Read the guide

Test regex with live matches

As you type a pattern, every match in your sample text is highlighted instantly so you can see exactly what it captures. Tweak the expression and watch the results update — no recompiling, no guesswork.

Capture groups and flags

Inspect the capture groups for each match, and toggle flags like global, case-insensitive, multiline, dot-all and unicode to fine-tune behavior. It is the quickest way to test a regex before dropping it into code.

Frequently asked questions

How do I test a regular expression online?

Enter your regex pattern and paste sample text. Matches are highlighted live and capture groups are listed, so you can refine the pattern until it behaves correctly.

Does the regex tester show capture groups?

Yes. For each match it lists the captured groups so you can confirm your pattern extracts the right parts.

Which regex flags are supported?

Common JavaScript flags are supported, including global, case-insensitive, multiline, dotall and unicode.

Related tools & guides