Fixed regular expression for Python 2.6