RegEx Tester
Live matches, capture groups, and replace - all as you type.
/
/
Live matches, capture groups, and replace - all as you type.
Type a pattern (no need for the surrounding slashes) and sample text - every match highlights live, with a numbered list of matches and their capture groups below. Switch to the replace row to swap matches for a replacement string, using $1, $2 for captured groups.
JavaScript's native RegExp - the same engine every modern browser uses, so patterns behave exactly as they will in your own JS code.
Every match - the g flag is always applied internally so all matches get enumerated, not just the first one.
No, matching and replacing both run entirely in your browser.
24 visits