【发布时间】:2014-08-13 10:02:06
【问题描述】:
匹配要求:
如果字符串在" 之间且包含\n
例子(catch YES include "s):
NO NO NO "NO NO NO" "YES YES
YES" NO "NO"
这个正则表达式工作了一半:
\"((?!\").)*\"
这也不行:
\"((?!\").)*(?!.*\n)\"
尝试了很多案例,但没有找到解决方案。
【问题讨论】:
标签: regex string language-agnostic regex-negation regex-lookarounds