Match repeated blank lines.
Section: Cleanup and Normalization
Collapse blank lines
regex
regex
(?:\r?\n\s*){3,}Explanation
Replace with `\n\n` or similar to reduce whitespace.
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 Cleanup and Normalization
Match leading or trailing spaces per line
Trim each line in multiline mode.
Redact card-like numbers
Find common 16-digit card-like sequences with separators.