Find & Replace

Workspace

Rule 1

Rule 2

How the result is calculated

Rules run in order and the output of the first is the input of the second. In literal mode the search text is escaped and $ in the replacement is an ordinary character; in regex mode the JavaScript flavour with the Unicode flag (u) is used with $1, $& and $<name> for named groups. “Whole word” wraps the pattern in Unicode letter/digit boundaries. The match count is taken before replacing.

Limits: The engine is JavaScript, so some PCRE and Python features (inline (?i), possessive quantifiers) are unsupported. There is no timeout against catastrophic backtracking: a bad pattern can freeze the tab, and the text limit is two million characters.

FAQ

How do I use named groups?

Enable regex and write (?<y>\d{4})-(?<m>\d\d), replace with $<m>/$<y>.

Why does my pattern not match?

Check flags and the expression; the tool uses the JavaScript flavour.

Newest tools

Recently added free tools — they run in your browser without uploading your data

All tools →

Format, minify and validate JSON with error line/column, duplicate-key detection and exact large numbers

Local

Remove consecutive or all repeated words with an exclusion list and Arabic support

Local

Table-based HTML email template with inline CSS, preheader, button, auto UTM and a plain-text version

Local