Regex re =
new
Regex(
"(?<=\").*?(?=\")"
, RegexOptions.None);
MatchCollection mc = re.Matches(
"你的字符串"
);
foreach
(Match ma
in
mc)
{
//ma.Value就是你要的值
}
先行 和断言
Regex re =
new
Regex(
"(?<=\").*?(?=\")"
, RegexOptions.None);
MatchCollection mc = re.Matches(
"你的字符串"
);
foreach
(Match ma
in
mc)
{
//ma.Value就是你要的值
}