> You need to change the indexOf() calls to indexIn() calls on the QRegExp > object: > > index = expression.indexIn(text, index + length)
Thank you so much ! After looking a bit more I found out that when using indexOf the command : length = expression.matchedLength() was the one causing a problem. Thus I also had to change the line : index = text.indexOf(expression) to : index = expression.indexIn(text) Now it works like a charm ! I'll test it at work where we have PyQt 4.3.3. Thanks again ! -- http://mail.python.org/mailman/listinfo/python-list