Hello Giorgi, I suggest to google for "python boyer moore" to get a fast implementation of a string search algorithm in Python (the Boyer-Moore algorithm). One promising hit seems to be: http://www.egenix.com/files/python/mxTextTools.html HTH, Bernd