-5

I have a Url:

https://www.facebook.com/video.php?v=10154500552625464

that I need to split into a key value pair with:

Value: https://www.facebook.com/video.php?v=10154500552625464 Key: 10154500552625464

I need to place them in a Dictionary:

static Dictionary<string, string> GetVideoLinks(string Data)
{
    Regex pattern = new Regex (@"https:\/\/www\.facebook\.com\/video.php\?v=?<id>[0-9]{17}");

    return ret;
}
Dami1
  • 23
  • 3

1 Answers1

0

There is a framework class for that: HttpUtility.ParseQueryString

nvoigt
  • 75,013
  • 26
  • 93
  • 142
BCartolo
  • 720
  • 4
  • 21
  • 6
    Please read: [Are answers that just contain links elsewhere really “good answers”?](http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers) – Robert Harvey Sep 03 '14 at 19:21