Regex Tester

Test and debug regular expressions with live matching, match highlighting, and capture group support.

Flags
 

Frequently Asked Questions

How do I test a regular expression online?
Enter your regex pattern in the pattern field, choose your flags (global, case-insensitive, multiline, dotAll), and type or paste your test string. Matches highlight instantly as you type.
What regex flags are supported?
This tool supports four flags: g (global — find all matches), i (case-insensitive), m (multiline — ^ and $ match line boundaries), and s (dotAll — dot matches newlines).
Does this regex tester support capture groups?
Yes. Named and unnamed capture groups are fully supported. Each match displays its captured groups so you can verify your pattern extracts the right data.
Is my data safe when using this regex tester?
Yes. All matching happens entirely in your browser using JavaScript. No data is ever sent to a server.