【发布时间】:2016-01-09 22:04:12
【问题描述】:
我想创建一个正则表达式,它返回两个多字符标记之间的所有内容,其中开始标记为;;(,结束标记为;;),例如
;;(
Capture this part, which can contain everything except the closing token
;;)
我认为使用负前瞻的正则表达式/;;\((?!;;\));;\)/ 应该可以工作,但这不会返回任何匹配项。是否可以为此使用正则表达式?
【问题讨论】:
标签: regex string regex-negation