有谁知道如何匹配不在括号中的字符串 [^...] 例如:我想匹配所有内容,直到最后一个“空格和 [”一起
This is my regex: (?<cookie>[^[( \[)]]*)
This is my string: country=US; lngCode=en; ga_cid=a*d%5d]7b7[6-4369-ad62-9 [
This is my result: country=US;
This is what i would like to have: country=US; lngCode=en; ga_cid=a*d%5d]7b7[6-4369-ad62-9
我的正则表达式匹配第一个空格而不是空格和 [ 一起
非常感谢!