HubTools

Find & Replace

Search and replace text with powerful options including regex patterns, case sensitivity, and whole word matching.

What is Find and Replace?

Find-and-replace is the workhorse text-editing operation: locate every instance of a string or pattern and swap it for something else. The trick is that "every instance" can mean very different things depending on the mode. Plain text matching swaps literal characters. Case-insensitive matching catches both API and api. Whole-word matching makes sure renaming id to identifier doesn't turn video into videntifier. And regex matching unlocks complex patterns — phone numbers, dates, URLs, code constructs — with capture groups that let you rearrange matched parts in the replacement. This tool runs all four modes locally with a live preview so you can verify matches before committing. Working on prose instead of code? Try the Text Formatter for case conversions and trimming. Need to verify your regex first? Use the Regex Tester.
Source Text
Find
Replace with
Use Regex
Case Sensitive
Whole Word
Result
Original Length
0
Modified Length
0
Replacements
0

How to use this tool

  1. 1
    Paste your text
    Drop the source text into the input area. There's no length cap beyond what the browser can hold in memory.
  2. 2
    Type the search and replacement strings
    Enter what to find on the left and what to replace it with on the right. Toggle regex, case-sensitive, and whole-word as needed.
  3. 3
    Preview matches and replace
    The match count updates live and matches are highlighted. Click Replace All to commit, or Copy to grab the result.

Frequently asked questions

What's the difference between plain find and regex?
Plain find matches the literal text exactly — useful for swapping a known word or phrase. Regex (regular expressions) match patterns, so you can replace 'all phone numbers in (xxx) xxx-xxxx format', 'every URL', or 'lines starting with TODO'. Regex is more powerful but takes more practice to write correctly without false matches.