【发布时间】:2014-10-28 09:55:38
【问题描述】:
我有一个网址:
https://www.facebook.com/video.php?v=10154500552625464
我需要拆分成一个键值对:
值:https://www.facebook.com/video.php?v=10154500552625464 密钥:10154500552625464
我需要将它们放入字典中:
static Dictionary<string, string> GetVideoLinks(string Data)
{
Regex pattern = new Regex (@"https:\/\/www\.facebook\.com\/video.php\?v=?<id>[0-9]{17}");
return ret;
}
【问题讨论】:
-
编写执行此操作的代码。
-
这个问题似乎是题外话,因为它表明没有尝试解决问题。
-
拒绝向我展示代码