From: Intransition Date: 2010-07-31T04:29:11+09:00 Subject: Re: how to find difference between two strings On Jul 30, 9:17 am, Priyank Shah wrote: > Hi, > > I have two strings, like > @a = "hello" > @b = "h123llo" > > so in that how can i print diffrence? > > i want difference like user know which diffrence on which character. There is strmask (http://rubyworks.github.com/strmask/) Also the Levenshtein distance is String#edit_distance in Ruby Facets.