Replace all or first
Use the g flag to replace every match, or omit it for the first match.
Test JavaScript regular expressions against your text, replace matches, and extract capture groups without uploading anything.
Paste text, enter a pattern and replacement, then choose flags. Output stays separate from your input.
Use JavaScript regular expression syntax. The g flag replaces all matches; remove it to replace only the first. Replacement values can use $1, $2, and $&.
Runs in your browser. Nothing is uploaded.
Useful for cleaning data, rewriting logs, and pulling values out of text.
Use the g flag to replace every match, or omit it for the first match.
Reorder or reuse captured text with $1, $2, $&, and named groups.
List every match and its capture groups without changing the input.
Supports g, i, m, s, u, and y flags.
A regular expression is useful when a simple search string cannot describe the pattern you need.
Turn YYYY-MM-DD values into DD/MM/YYYY without editing each line by hand.
Replace email addresses, tokens, or long identifiers before sharing a log excerpt.
List every order number or ticket ID that matches a pattern, with capture groups.
The pattern captures three groups and the replacement puts them in a new order.
Pattern: (\d{4})-(\d{2})-(\d{2})
Input: 2026-11-10
Replacement: $3/$2/$1
Output: 10/11/2026
No upload step, no account, and no detour through a server.
Add the content you want to search.
Enter a JavaScript regular expression and any flags.
Review the output, then copy or download it.
This tool runs entirely in your browser. Nothing you enter is sent to a server, and there is no upload step. Your input stays in this tab unless you explicitly download it.
No uploads. No account. No tracking scripts.
No. Matching and replacement happen in your browser. Nothing is sent to a server.
The browser’s JavaScript regular expression engine. Lookbehind and named groups work in modern browsers, but availability can vary in older ones.
The g flag is required to replace every match. Add g to the flags field, or leave the flags empty to replace only the first match.
Yes. Use Extract matches to list every match and its groups. Replacement strings can reference groups with $1, $2, or $<name>.
The tool keeps inputs under 1 MB. Complex patterns can still be slow, so keep an eye on catastrophic backtracking when using nested quantifiers.