Learn how find and replace works, why case sensitivity matters, and when you need regex instead of a literal match.
Find and replace looks like a simple search for exact text, until you need to match a pattern rather than one specific string, at which point it starts to overlap with regular expressions.
The most basic form searches for an exact sequence of characters and swaps it for another, straightforward when you know precisely what text you’re looking for and what should replace it.
A literal search for “Apple” won’t match “apple” unless case-insensitive matching is turned on. Deciding whether case should matter is one of the first, easy-to-overlook choices in any find-and-replace task.
Literal find and replace only handles one exact string at a time. When you need to match a whole category of text, any number followed by “px”, for example, rather than one specific value, that’s the job of Regex Explained for Beginners, which finds and replaces based on a pattern rather than an exact match.
The Find and Replace Text finds and replaces text instantly, with options for case sensitivity and whole-word matching.
Find and Replace Text
Enable case-insensitive matching, so “Apple” and “apple” are both treated as the same match.
Literal find-and-replace matches one exact string. Regex-based replace matches a pattern, letting you replace an entire category of text (like any sequence of digits) in one operation.
Use a whole-word matching option if available, so a search for “cat” doesn’t also match the “cat” inside “category”.
Yes, especially across a large amount of text, since it’s easy for a search to match more (or less) than intended without a review step.
Yes, a find-and-replace operation typically searches the entire text provided, not just a single line, unless specifically restricted.
Find the right tool, or keep reading Brekzy's other guides.