使用 [\s\S] 而不是 . 来匹配所有字符(包括换行 \r\n 等)原文见 https://blog.csdn.net/xiaodongxiexie/article/details/51678295