Find & Replace
Find and replace text using literal strings or regular expressions.
Four match modes
Three toggle buttons in the controls strip modify how the find pattern is interpreted. Combine them as needed — all three can be active simultaneously.
| Toggle | Symbol | Effect |
|---|---|---|
| Regular expression | .* | Find field is treated as a regex; replacement can use $1, $2 for groups |
| Case sensitive | Aa | Match only the exact case shown in the find field |
| Whole word | |w| | Match only when the pattern is surrounded by word boundaries (\b) |
Tip: With regex mode off, special regex characters in the find field are automatically escaped, so "file.txt" matches a literal period, not any character.
Regex replacements with capture groups
When regex mode is on, the replacement string can reference capture groups from the find pattern using $1, $2, etc. For example, finding (\w+)\s(\w+) and replacing with $2, $1 swaps the order of two adjacent words. The replacement syntax follows JavaScript's String.replace with a RegExp.
Warning: A regex find pattern that matches zero-length strings (like .* or a*) will replace every position in the text. The match count badge shows how many replacements will be made before you commit — use it as a sanity check.
Frequently Asked Questions
Your files stay on your computer. Dad promised.