By using Regex I've got links from an HTML Source.
But now I want to save these links into a new array so that I can later use them. I mean, I want all the "m.Groups[]" in a new array.
Here's my code:
String html = getSource();
r = new Regex("class=lnk href\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))", RegexOptions.IgnoreCase | RegexOptions.Compiled);
for (m = r.Match(html); m.Success; m = m.NextMatch())
{
MessageBox.Show("Link" + m.Groups[1].Value);
}
Thanks in advance.