Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. var matches = Regex.Matches(text,pattern,RegexOptions.Singleline);
  2.  
  3. matched = false;
  4.  
  5. foreach (Match m in matches)
  6. {
  7. DataRow newRow = matchedGroups.NewRow();
  8.         newRow["Group"] = m.Groups[1].Value;
  9.         matchedGroups.Rows.Add(newRow);
  10.         matched = true;
  11. }
  12.  
  13. oMatchedGroups = matchedGroups;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement