Surround found words using capture groups.
Section: Replace Cookbook
Wrap matches in quotes
regex
regex
Find: (\w+)
Replace: "$1"Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Replace Cookbook
Convert key: value style to quoted keys
Useful when massaging JS-like objects into JSON-like keys.
Prefix lines during replace
Insert comment prefix at the beginning of lines.