Reduce multiple blank lines to one.
Section: Regex Examples
Collapse repeated blank lines
regex
regex
Find: \n{3,}
Replace: \n\nLearn 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 Regex Examples
Match quoted strings
Simple pattern to match single or double quoted strings.
Convert key: value style to quoted keys
Useful when massaging JS-like objects into JSON-like keys.