62,266
社区成员
发帖
与我相关
我的任务
分享
string str = "23424http://www.tvgood.com/player.php/Type/Folder/Fid/2181918/Ob/1/Pt/0/sid/XMTAwMjExNTI=/v.swfFSFSFSDFSFSFSA";
string strReg = "(?<url>http://.*?/v.swf)";
Regex r = new Regex(strReg, RegexOptions.Multiline | RegexOptions.IgnoreCase);
MatchCollection mc = r.Matches(str);
foreach(Match m in mc)
{
MessageBox.Show(m.Groups["url"].Value);
}
"(?<=XMTAwMjExNTI=/)(\w+)(=\"|\s)"