Move the cursor over a token to see its explanation.

Ready.

Test string Browser JavaScript RegExp input
0 matches 0 ms
Tools Matches, explanation, replace and export

        

Current pattern, flags, text, replacement and matches.


        
JavaScript RegExp engine Live matches · groups · replacements

The editor uses the browser JavaScript RegExp engine. It highlights matches, explains tokens, previews replacements and keeps the current pattern locally in the browser.

Quick workflow RegExr-style editor

Edit the expression and flags, paste sample text, review matches and groups, preview replacements, then copy or download the JSON export. State is saved locally in the browser.