Regex Tester — Test Regular Expressions
/
/
Flags: g (global) · i (ignore case) · m (multiline) · s (dotAll)
Matches: 0
Enter a regular expression pattern and optional flags, then paste your test string below. Matches highlight in real time as you type — no page reload, no server, no signup. Supports all JavaScript RegExp flags: g, i, m, and s.
Frequently asked questions
- Does the regex tester find all matches?
- Yes, up to 1,000. The tester always adds the g flag, so every match is listed whether or not you type g, and it stops counting after the first 1,000 matches.
- Does the regex tester show capture groups?
- Only named ones. Write a group as (?<name>pattern) and the match details list its name and value next to each match. Plain numbered groups such as (\d+) are not listed, so give a group a name to see what it captured.
Related tools
JSON Formatter Format, validate, and minify JSON in the browser. URL Encoder / Decoder Percent-encode and decode URL strings. Hash Generator Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text. CSS Minifier Minify and compress CSS code to reduce file size. Whitespace Remover See and remove the invisible spaces that \s does not match.