DevToolbox

Regex Tester

Test your regular expressions in real time with match highlighting and group extraction.

//g
Enter a pattern and test string to see matches.

Common use cases

Practical ways developers use the regex tester in real workflows.

Validate input patterns

Test email, phone number, or date patterns before embedding them in form validation logic.

Extract structured data

Write a regex to pull IDs, URLs, or tokens out of log lines or API responses.

Search and replace

Prototype find-and-replace patterns before applying them in your editor or build scripts.

Frequently asked questions

Short answers to the questions people usually have before using the tool.

Which regex flavor does this tester use?+

It uses JavaScript's built-in RegExp engine, so the behavior matches what you get in Node.js and modern browsers.

What do the flags g, i, m mean?+

g (global) finds all matches instead of stopping at the first. i (case-insensitive) ignores letter case. m (multiline) makes ^ and $ match line starts and ends.

Can I test named capture groups?+

Yes. Use the (?...) syntax and captured groups will appear in the match results.

Related tools

Keep moving through related utility tasks without leaving the toolbox.