I have to match 2 urls, the first one comes from MySQL db and the second one comes from an Html page. If I compare both as string
var match = Regex.Match(href.Attributes["href"].Value, testString, RegexOptions.IgnoreCase);
the match.Success = false.
Both strings are like this : myUrl/rollcontainer-weiß
but the match.Success is still false.
I tried to add HttpUtility.HtmlEncode
to check both strings and I get : myUrl/rollcontainer-weié
for the first one and myUrl/rollcontainer-wei&ß
for the second one.
How can I have a match.Success = true
in this case ?