3 ms·
Your version deletes empty lines, but the version you quoted deletes lines that are blank or only have white space. Edit to be more helpful: ^ is the start of
by wilkystyle 3y ago
Your version deletes empty lines, but the version you quoted deletes lines that are blank or only have white space.
Edit to be more helpful:
^ is the start of a line
\s is a space character
* means "zero or more of the previous character"
$ is the end of a line
- AdmiralAsshat 3y agoGot it. He specifically said, "Remove all blank lines", so I assumed they were doing the same thing. I should've recognized \s as the space character.
- tzot 3y ago> I should've recognized \s as the space character. … whitespace pattern.