Handy find and replace tricks
| Goal | Find | Replace with | Options |
|---|---|---|---|
| Remove double spaces | {2,} | a single space | Regex |
| Put each sentence on its own line | ([.!?]) | $1\n | Regex |
| Swap "first last" to "last, first" | (\w+) (\w+) | $2, $1 | Regex |
| Rename a product everywhere | Old Name | New Name | Match case |
Putting each sentence on its own line is a useful way to prepare a teleprompter script. For PDF text with broken lines, use remove line breaks first.