Regex Find Text Between Tags C#
c#, regex
Solution
You need to get value of group not of the match. Try this
Match m = collection[0];
var stripped = m.Groups[1].Value;
Problem
I want to strip the html tags and only return the text between the tags. Here is what I'm currently using. ``` string regularExpressionPattern1 = @"<td(.*?)<\/td>"; Regex regex = new Regex(regularExpressionPattern1, RegexOptions.Singleline); MatchCollection collection = regex.Matches(value.ToString()); ``` I currently get `<td>13</td>`, and I just want `13`. Thanks,