How to use it
- Type what to find and what to put instead.
- Choose plain text or a regular expression, and whether case and whole words matter.
- Copy the result.
How it works
In plain mode, special characters are treated literally and the replacement is inserted exactly as typed. In regular-expression mode the pattern uses JavaScript syntax and the replacement may use $1, $2 for captured groups, $<name> for named groups, $& for the whole match and $$ for a dollar sign. All matches are replaced.
Matching runs in a background worker and is stopped after 2 seconds, which protects the page from patterns that backtrack catastrophically.
Examples
- Find (\d+)-(\d+)-(\d+), replace $3/$2/$1 turns 2024-05-06 into 06/05/2024.
Limitations
- Up to 2,000,000 characters of text.
- JavaScript regular-expression syntax only; other languages differ in details.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.