What is regular expression for Blank Line in Julia?
I found this regular expression
r"^(?:[\t ]*(?:\r?\n|\r))+"m for blank line. Please write other easy alternatives if you know.
This may no answer your question, but this website regex101: build, test, and debug regex, is very useful to test regex expressions.
I would use
r"^$" to find empty lines, and
r"^\s*$" to include non-empty lines that contain only whitespace.