使用js的表达式 let pattern = /([\s\S]*)/; 参考 正则表达式匹配任意字符(包括换行符) https://www.runoob.com/regexp/regexp-syntax.html