I'm trying to write some code in C# to extract information out of a string using a regex:
var regex = new Regex("href=/skin/(.*)");
var matches = regex.Matches(line);
foreach (string regfr in matches)
MessageBox.Show(regfr);
I'm doing something REALLY WRONG, I've done regex before but here it's much more confusing.
I want to turn:
<a href="/skin/result1">
into:
result1
i used this in php on preg_match which is easy to use..
a%20href="/skin/(.*)"
and it worked, this is probably really easy, but I'm extremely confused with the way these object-oriented things work :P