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:
  1. Dim strA As String, strB As String
  2.  
  3. strA = "The dog ran around the house."
  4. strB = "The dog ran around a house."
  5.  
  6. ' Now I want to compare strA and strB to see if they are the same within an 80% or less margin of difference.
  7.  
  8. ' 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.