[英]Regex match everything not in between
所以我有一个像文本一样的文本
This is a text
+++ Everything in here shouldn't be matched +++
This should be matched
+++ This should neither +++
我希望匹配“+++”和“+++”之间的所有内容(不包括“+++”)
我认为它可以用“而不是+++”
.(?=(?:[^"]*"[^"]*")*[^"]*\Z)
但我无法找到,如何用“+++”作为指标来做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.