I am trying to find a way to compare two strings to see if they are similar to or equal to one another.
I know that I can use String.Compare to determine if two strings are equal to one another, but I want to see if the strings match in an 80% or less range of equality.
For example,
VB Code:
Dim strA As String, strB As String strA = "The dog ran around the house." strB = "The dog ran around a house." ' Now I want to compare strA and strB to see if they are the same within an 80% or less margin of difference. ' If they are almost the same do something within 80%.
Now I want to compare strA and strB to see if they are the same within an 80% or less margin of difference.
Any tips on where to start?
Thanks.




Reply With Quote