简体   繁体   English

Regl in Sublime Text:匹配任何字符,包括换行符?

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

Is there a way to match any character in Sublime Text, including newlines? 有没有办法匹配Sublime Text中的任何字符,包括换行符? I saw that Sublime uses Boost's syntax but that the . 我看到Sublime使用Boost的语法,但是. character won't match newlines without a specific flag set. 如果没有设置特定标志,字符将不匹配换行符。

Try adding the (?s) inline flag start the start of the pattern. 尝试添加(?s)内联标志启动模式的开始。 That will make . 这将使. match any character. 匹配任何角色。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 匹配任何字符,包括 Python 正则表达式子表达式中的换行符,而不是全局匹配 - matching any character including newlines in a Python regex subexpression, not globally 正则表达式匹配任何字符,包括新行 - Regex to match any character including new lines Sublime Text 3 语法文件中的正则表达式用于捕获单词后的所有内容,包括换行符 - Regex in Sublime Text 3 syntax file to capture everything after a word, including newlines 正则表达式-忽略换行符-匹配任何东西,直到文本或数字结尾 - Regex - Ignore newlines - match any thing untill end of text or numbers Grep Regex匹配任何内容,包括换行符 - Grep Regex Match Anything Including Newlines 正则表达式:匹配除逗号以外的任何字符(包括空格) - Regex: Match any character (including whitespace) except a comma 使用 python 中的正则表达式匹配任何字符和/或未定义的换行符 - Matching any character and or undefined newlines with regex in python 快速正则表达式,与一个字符匹配,但不包括该字符 - quick regex, match with a character but not including that character 如何正则表达式完全匹配由任意数量的换行符和/或文本分隔的两个时间戳 - How to regex match exactly two timestamps separated by any number of newlines and/or text 如何在VBA中使用RegEx进行多行任何字符匹配,包括换行符 - How to do a multi-line any character match including newline character using RegEx in VBA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM