Find and Replace
Performs find and replace operations on text, with support for plain text, case-sensitive, and regular expression modes. Useful for batch text transformations without a code editor.
Search modes
- Plain text: literal string matching; fastest and safest for simple replacements
- Case-insensitive: matches regardless of uppercase/lowercase
- Regular expression (regex): powerful pattern matching for complex transformations
- Whole word: only matches the pattern when surrounded by word boundaries
Useful regex patterns
| Pattern | Matches |
|---|---|
\d+ | One or more digits |
\s+ | One or more whitespace characters |
^ | Start of a line |
$ | End of a line |
\b | Word boundary |
(group) | Capture group, reference with $1 in replacement |
Common use cases
- Cleaning up CSV data (replace semicolons with commas)
- Renaming variables across a text snippet
- Stripping HTML tags with regex
- Formatting phone numbers or dates consistently