Search and replace text — plain words or regular expressions. Bulk-replace across any amount of content instantly.
| Pattern | Matches | Example |
|---|---|---|
| \b | Word boundary | \bcat\b → "cat" not "cats" |
| \d+ | One or more digits | \d+ → matches 42, 100 |
| \s+ | One or more whitespace | \s+ → collapse spaces |
| (group) | Capture group | (\w+) → use $1 in replace |
| ^ | Start of line | ^\s+ → trim leading spaces |
| $ | End of line | \s+$ → trim trailing spaces |
$1, $2, etc. Example: find (\w+),\s*(\w+), replace with $2 $1 — this swaps "Smith, John" to "John Smith".\b word boundaries. Without this, searching for "cat" would match "cats", "concatenate", "category". With whole word enabled, it only matches the exact standalone word "cat". This is the same as Ctrl+H → "Match whole word" in VS Code or Notepad++.