RegEx in Sublime Text: Match any character, including newlines?

巧了我就是萌 提交于 2019-12-29 02:18:48

问题


Is there a way to match any character in Sublime Text, including newlines? I saw that Sublime uses Boost's syntax but that the . character won't match newlines without a specific flag set.


回答1:


Try adding the (?s) inline flag start the start of the pattern. That will make . match any character.



来源:https://stackoverflow.com/questions/11992596/regex-in-sublime-text-match-any-character-including-newlines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!