Regex tester
Test a regular expression against your text and see every match and capture group.
Related tools
Regex tester
Type a regular expression, paste the text you want to try it on, and the matches appear as you type. Every match gets its own block: the line and column it starts on, its position in the string, the matched text itself, and the value of each capture group, numbered the way a replacement refers to them as $1 and $2. Named groups are labelled with the name you gave them, and a group that took no part in the match says so instead of quietly showing nothing.
Switch the mode to "Replace matches" to see what the pattern would actually do to the text. The replacement field uses the same syntax as JavaScript's String.replace, so $1 inserts the first group, $<name> a named one and $& the whole match. It is the quickest way to check a bulk rename across a log file or a CSV export before running it for real.
The five flags are plain checkboxes. Global, on by default, finds every match rather than stopping at the first — turn it off and only the first match is listed, or in replace mode only the first is replaced. Ignore case makes Cat match cat. Multiline points ^ and $ at the start and end of each line instead of the whole text. Dot matches line breaks lets a period cross a newline. Unicode enables property escapes such as \p{L} and matches by code point, which you need for emoji and non-Latin scripts.
Two limits keep the tab responsive: a pattern over 500 characters is refused, and the scan stops after 10,000 matches, which the tally tells you about. Your pattern and your text stay on your device — nothing is uploaded, so production logs and customer records are safe to test against.