similar_text in python
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Feb 13 01:52:32 EST 2009
En Fri, 13 Feb 2009 04:18:05 -0200, sudhandra selvi
<sudhandra_selvi at yahoo.co.in> escribió:
> Does anyone know if Python has a function like similar_text in PHP. It
> compares two strings and returns a percentage for the match. Anyone
> know of anything like this in Python and would be willing to send
> along an example?
See the difflib module.
http://docs.python.org/library/difflib.html
--
Gabriel Genellina
More information about the Python-list
mailing list