Achim Domma: >I have a list of strings and want to know which one is >most similar to a reference string. Define 's1 is most similar to s2' for all strings s1 and s2. You can skip the definition of 'most', when your definition of 'similar' defines a total order :-) http://en2.wikipedia.org/wiki/Total_order -- René Pijlman