Use the group collection of the Match object, indexing it with the capturing group name, e.g.
foreach (Match m in mc){
MessageBox.Show(m.Groups["link"].Value);
}
More Related Contents:
- Find and extract a number from a string
- Using RegEx to balance match parenthesis
- How do I extract text that lies between parentheses (round brackets)?
- How do I replace the *first instance* of a string in .NET?
- What are regular expression Balancing Groups?
- Find a string between 2 known values
- Regular Expression to split on spaces unless in quotes
- Why does the order of alternatives matter in regex?
- Regex to strip line comments from C#
- What’s the difference between “groups” and “captures” in .NET regular expressions?
- Remove text in-between delimiters in a string (using a regex?)
- Why \b does not match word using .net regex
- RegEx for an IP Address
- Count regex replaces (C#)
- Using WebClient in C# is there a way to get the URL of a site after being redirected?
- Translate Perl regular expressions to .NET
- Regex replace multiple groups
- Are Java and C# regular expressions compatible?
- C# – Regex for file paths e.g. C:\test\test.exe
- .Net regex: what is the word character \w?
- Regex: Repeated capturing groups
- Canadian postal code validation
- Why doesn’t $ in .NET multiline regular expressions match CRLF?
- How to use inline modifiers in C# regex?
- C# System.RegEx matches LF when it should not
- Regex for matching a character, but not when it’s enclosed in square bracket
- What is a “Nested Quantifier” and why is it causing my regex to fail?
- Regular expression to validate valid time
- regex to split line (csv file)
- is there a elegant way to parse a word and add spaces before capital letters