Bulk-edit a text: find every occurrence, replace them all, and see exactly how many changed before you copy the result.
Find and replace is the editor feature that documents outgrow, when the text lives in a web form, a PDF export or a chat window, there is no built-in replace-all. This version adds the controls that matter for safe bulk edits: whole-word matching so replacing 'cat' never touches 'category', case sensitivity for code and names, a live count of matches before anything changes, and a regex mode for pattern work (collapsing whitespace, reformatting dates, stripping markup) with capture-group references ($1, $2) in the replacement.
Bulk replacement is destructive inside the text box only, the original stays one paste away until you overwrite it, so experiment freely. In regex mode an invalid pattern is reported rather than applied, and catastrophic patterns on huge texts are the one way to make the tab think hard; test on a sample first.
How do I reference matched groups in regex mode? Use $1, $2 and so on in the replacement, matching the pattern's parentheses, the same convention as JavaScript and most editors.
Can it replace across line breaks? In regex mode, yes, patterns like \s+ span newlines. In plain mode, line breaks in the Find field cannot be typed, so use regex mode with \n for those.
Why is the count shown before replacing? Because 'replace all' on a surprise, 400 matches when 4 were expected, is how documents get mangled. The count is the seatbelt.