Compare 2 string
.net, asp.net, c#
Solution
You could calculate the Levenshtein distance between the two strings and if it is smaller than some value (that you must define) you may consider them to be pretty close.
Problem
I have the following 2 strings: ``` String A: Manchester United String B: Manchester Utd ``` Both strings means the same, but contains different values. How can I compare these string to have a "matching score" like, in the case, the first word is similar, "Manchester" and the second words contain similar letters, but not in the right place. Is there any simple algorithm that returns the "matching score" after I supply 2 strings?