ittavern.com/items/2022-11-15_long_cyberchef-how-to-remove-empty-lines.md
2025-10-27 20:12:00 +01:00

13 lines
580 B
Markdown

# CyberChef - How to remove empty lines
So, since I am too stupid to remove empty lines easily, I present to you my overcomplicated solution.
Search for the `Find / Replace` in the operations and replace `^(?:[\t ]*(?:\r?\n|\r))+` with nothing.
![screenshot of the cyberchef interface with the described workflow](/images/blog/cyberchef-remove-empty-lines.png)
It uses Perl's regex to find specific line breaks that indicate an empty line. Regex is still magic to me.
[Reference](https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/remove-blank-lines.html)
---