wsoza 0 Newbie Poster

Hei i tried to fill DataGridView from MatchCollection
anyone knows how to do this? thanks...

Regex objNotNaturalPattern = new Regex(@txtRegex.Text, RegexOptions.IgnoreCase);
MatchCollection matches = objNotNaturalPattern.Matches(pagesource);
   int h = 0;
   lbResult.Text += "\n";
   while (h < matches.Count)
   {
       Match m = matches[h];
          for (int ctr = 1; ctr < m.Groups.Count; ctr++)
          {
              lbResult.Text += "- ";
              lbResult.Text += m.Groups[ctr].Value + "  ";
              lbResult.Text += "\n";
          }
       h++;
   }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.