Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有大约 200 万行需要找到所有空行。
AKRAM AHMED SSYED Aakram ahmed (need to find this empty row) james hetfield metallica
搜索此正则表达式:\\n\s*\\n
\\n\s*\\n
它将搜索仅包含空格或不包含任何内容的行。
/^\s*$/ #will match only line containing spaces or nothing.