Mer*_*ith 3 c# regex visual-studio-2010 regex-negation
我需要匹配["this"
但不是:["this"
我有这个代码:
Match match = Regex.Match(result, @"\[""(.*?)""",
RegexOptions.IgnoreCase);
while (match.Success)
{
MessageBox.Show(match.Groups[1].Value.Trim());
}
Run Code Online (Sandbox Code Playgroud)
我试过这个模式@"(?!:)\[""(.*?)"""
,但它仍然匹配:["this"
.我需要实现这个模式吗?