Find & Replace

Find and replace text literally or with a regular expression using i, m and s flags, whole word, named groups $<name>, two chained rules and a match count.

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 →

AES and ChaCha20 keys with correct IV/nonces via Web Crypto, Hex, Base64 and JWK formats, verification and bulk export

Local

Paste discussions (Reddit, Quora, YouTube) to extract pain points, repeated questions, phrases, topic clusters and title ideas

Local

A bookmarklet that analyses any page as your browser sees it after JavaScript: title, description, H1, links, images, Open Graph, JSON-LD and hreflang

Local

Legitimate link-building tactics, outreach message templates, a linkable-asset idea generator and a local opportunity tracker with CSV and JSON export

Local