木有EmEditor,在Sublime中是通过在表达式前添加(?s)来让表达式匹配换行符。
google了一下,是说对话框里有一个勾选项啊?
引用:
Please check “Regular Expressions can Match new line characters” check box and enter 1 or more in the “Additional Lines to Search for Regular Expressions” text box in the Search tab of Customize dialog box.
|
另外{}要转义,如果是sublime的话应该是:
(?s)\{(.*)\}