正则表达式匹配空行

测试所用的编辑器:notepad++

^(s*)

根据文档格式(windows, mac, linux行尾符)不同 将其中的 替换成不同行尾符

windows: ^(s*)

linux: ^(s*)

mac: ^(s*) (mac 也是一种类linux系统)

原文地址:https://www.cnblogs.com/WebLinuxStudy/p/14488436.html