[issue22119] Some input chars (i.e. '++') break re.match

2014-08-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> behavior ___ Python tracker ___ _

[issue22119] Some input chars (i.e. '++') break re.match

2014-08-01 Thread Matthew Barnett
Matthew Barnett added the comment: In a regex, '+' is a metacharacter meaning "repeated one or more times". "libstdc+" will match "libstd" followed by "c" repeated one or more times. "libstdc++" will match "libstd" followed by "c" repeated one or more times, but then there's another "+", which

[issue22119] Some input chars (i.e. '++') break re.match

2014-08-01 Thread John Fisher
New submission from John Fisher: Some characters repeated in the pattern break re.match: Linux python 2.7.6 ### # test.py import re #diffitem = "libstdc+" succeeds #diffitem = "libstdc++" fails #diffitem = "libstdc**" fails #diffitem = "libstdc.." succeeds