Last updated ·Published ·By the WiserWork team
Text Replacer
Find & replace text with case-sensitive & regex support
Find and replace across a whole block of text, with switches for case sensitivity, whole-word matching, multi-line anchors and full regular expressions when a literal search is not enough.
What is the Text Replacer?
A literal search treats your term as plain characters. Type a period and it matches a period, type an asterisk and it matches an asterisk, because every regular expression metacharacter is escaped before the search runs. Ticking Use Regex removes that escaping and hands the field straight to the browser's regular expression engine, where a period means any character, an asterisk repeats the item before it, and character classes such as [A-Z]+ become available. The remaining switches sit on top of the literal mode: Match Whole Word Only wraps your term in word boundaries so cat stops matching category, and Multi-line Mode makes the anchors ^ and $ apply to each line instead of to the text as a whole.
Key Features
- Literal mode escapes metacharacters, so punctuation is searched as typed
- Regex mode passes your pattern to the browser's own engine
- Whole-word switch wraps literal terms in word boundary markers
- Case sensitivity is off by default; tick the box to enforce it
- Live match counter above a scrolling result panel with escaped markup
Common Use Cases
- Renaming a variable throughout a pasted file without touching similar longer names
- Stripping tracking parameters from a list of URLs with one pattern
- Swapping a client name across a proposal before sending a revised version
- Normalizing inconsistent date separators in an exported list of records
How to Use the Text Replacer
- Paste the text you want to edit into the top input box.
- Enter your search term in the Find field and the new text in Replace with.
- Tick Case Sensitive, Use Regex, Match Whole Word Only or Multi-line Mode as needed.
- Watch the Matches badge as you type, then press Replace All to produce the result.
- Press Copy to take the result, or Swap to exchange the Find and Replace fields and reverse an edit.
Tips for Best Results
- Case Sensitive is off when the page opens, so searching for the also matches The.
- With Use Regex ticked, Replace All rewrites only the first match rather than every occurrence.
- Regex mode overrides the whole-word switch, so build the word boundaries into your pattern.
- In regex mode the replacement field understands group references such as $1 and $2.
Why Use WiserWork's Text Replacer?
Most find-and-replace boxes force a choice between a literal search that cannot express a pattern and a regex field that turns a stray period into a wildcard. Here the two are separate modes with the escaping handled for you, and the match counter shows how many hits a term has before you commit to rewriting anything. Because the substitution happens in page JavaScript, an unpublished draft or a file full of internal names never leaves your machine.
Who Uses the Text Replacer?
Developers cleaning up pasted logs or renaming symbols, writers running a name change across a manuscript, and analysts reshaping exported records before importing them somewhere else. It also makes a low-risk practice ground for regular expressions, since the match count responds as you refine a pattern.
Frequently Asked Questions
What is the difference between literal and regex mode?
Literal mode escapes every regular expression metacharacter, so a period, plus sign or bracket matches exactly as typed. Regex mode sends the field straight to the browser's engine, where those characters carry their pattern meanings.
Does Replace All change every occurrence?
In literal and whole-word mode, yes, because the global flag is applied. In regex mode the pattern runs without the global flag, so only the first match is rewritten.
Why does the match count differ from the number of replacements?
The counter always searches globally, and in literal or whole-word mode it ignores case even when Case Sensitive is ticked. Replace All honors your settings, so treat the result panel as authoritative.
Is the search case sensitive by default?
No. The Case Sensitive box is unchecked on load, which applies the ignore-case flag. Tick it to make uppercase and lowercase count as distinct.
What does Match Whole Word Only actually do?
It wraps your escaped term in word boundary markers, so searching for art matches the standalone word but not artist or Bartholomew. It applies to literal searches only.
When do I need Multi-line Mode?
Only with regular expressions that use the ^ and $ anchors. With it on, those anchors match at the start and end of each line instead of only at the start and end of the whole text.
Can I use captured groups in the replacement?
Yes. The substitution runs through the browser's own replace function, so tokens like $1 and $2 in the Replace with field insert the matching captured groups from your pattern.
What happens if my regular expression is invalid?
The result panel shows Regex Error followed by the browser's explanation, and your input text is left untouched. Correct the pattern and press Replace All again.
Does the result update as I type?
The match counter does, but the result panel does not. Replacements appear only after you click Replace All, so you can test a term safely before committing to it.
Will markup in my text be rendered in the result?
No. Angle brackets and ampersands are escaped before the result is shown, so tags appear as literal characters and are copied that way too.
Find and replace is one of those operations where a single careless wildcard rewrites far more than intended. Checking the match count first, then choosing literal or regex deliberately, keeps the edit exactly as narrow as you meant it to be.