明白啦:
<TAG>something one</TAG><TAG>something two</TAG><TAG>something three</TAG>
我只想匹配:something two
我尝试:(?<=<TAG>)(.*two.*)(?=<\/TAG>)
但得到:
something one</TAG><TAG>something two</TAG><TAG>something three
也许我再举一个例子
RECORDsomething beetwenRECORD RECORDanything beetwenRECORD etc.
想听话beetwen RECORD