# Search & Replace

> Search and replace text online. Supports regular expressions (regex) and case sensitivity.

- Open in browser: https://pockettoolbox.org/en/search-replace
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Edit large texts efficiently by specifically searching for and replacing words or patterns.

Paste your text into the main field. Enter a search term and the text you want to replace it with. You can perform simple text replacements or use regular expressions (regex) to find complex patterns. Options like ignore case help with fine-tuning.

Processes strings using String.prototype.replaceAll() (for plain text replacement) or String.prototype.replace(new RegExp(pattern, flags), replacement). In regex mode, special characters are escaped or flags such as "g" (global), "i" (case-insensitive), and "m" (multiline) are dynamically configured.

---
PocketToolbox (https://pockettoolbox.org/en)
