How to do advanced string comparison in Ruby?

狂风中的少年 提交于 2019-11-30 07:37:24

You may want to try the Levenshtein string distance algorithm for this. http://rubygems.org/gems/text has an implementation of this along with other helpful string comparison utils.

Paul Whelan

See my similar Question here what I needed but did not know what it was called was a Levenshtein distance algorithm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!