[issue12325] regex matches incorrectly on literal dot (99.9% confirmed)

Cal Leeming report at bugs.python.org
Mon Jun 13 14:30:52 CEST 2011


Cal Leeming <cal.leeming at simplicitymedialtd.co.uk> added the comment:

Take particular notice to the following:

\.co\.uk

    or
      literal 99
      literal 111
      literal 46
      literal 117
      literal 107


>>> map(lambda x: chr(x), [99,111,46,117,107])
['c', 'o', '.', 'u', 'k']

It would appear it is ignoring the first \. 

But why??

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12325>
_______________________________________


More information about the Python-bugs-list mailing list