我一直在努力寻找解决这个问题的方法.假设有一个字符串
"hello Exclude1 4:32 test test Exclude2 5:23 hello 2:19 some more text 42:3 more text"
Run Code Online (Sandbox Code Playgroud)
我试图创建一个C#至REGx将只匹配2:19和42:3
而忽视Exclude1 4:32和Exclude2 5:23
即如果前面有Exclude1或Exclude2,则不匹配4:32或n:nn.谢谢