← All tools

Regex Tester & Extractor

Write a regular expression and watch it match your text live. See every capture group, preview a replace, or pull all matches out as a list. Everything runs in your browser.

/ /
No matches yet Examples:
Test text
Adjacent matches alternate blue/purple; underlined spans are capture groups. A red bar marks a zero-length match.
Type a pattern above to see matches here. Click a row to jump to it in the text.
Result
Without the g flag only the first match is replaced.
Explain this pattern
Regex cheatsheet