PocketPlay
中文

Find & Replace

Find and replace text with plain, whole-word or regex rules — stack several rules, preview every change and undo.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Replacement rules

No replacements

Original text

Drop a .txt file
or click to choose — it stays on your device

Result

“Use result as input” rewrites the box on the left so you can chain another round — Undo brings it back.

How to use find & replace

  1. Paste your text on the left, or drop in a .txt file — nothing is uploaded.
  2. Fill in the first rule: what to find, what to replace it with, and whether to match plain text, a whole word or a regular expression.
  3. Add more rules with Add rule — they run top to bottom on the same text — then copy or download the result.

FAQ

How do I use capture groups?

Switch the rule to Regex and refer to groups as $1, $2 or $& for the whole match. Named groups work too: (?<year>\d{4}) becomes $<year>. In regex mode \n and \t in the replacement insert a line break or tab.

Does whole-word matching work with Chinese?

Whole-word mode uses letter/digit boundaries, which Chinese text does not have — every Chinese phrase would count as one word. For Chinese use plain text mode, or a regex with your own boundaries.

Why is a later rule not matching text an earlier rule produced?

It does. Rules run in order on the full text, so rule 2 sees everything rule 1 wrote. If a rule matches nothing, check its counter badge — it shows how many times that rule fired.