I wonder if there is an easy way to check if two strings match by excluding certain characters in the strings. See example below.
I can easily write such a method by
I found myself having the same requirements, the solution I used was based on the String.Compare method:
String.Compare(str1, str2, CultureInfo.InvariantCulture, CompareOptions.IgnoreSymbols)