[issue24636] re.search not respecting anchor markers in or-ed construction

2015-07-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue24636] re.search not respecting anchor markers in or-ed construction

2015-07-15 Thread Matthew Barnett
Matthew Barnett added the comment: The or-ed patterns aren't between the anchors. The ^ is at the start of the first alternative and the $ is at the end of the last alternative. -- ___ Python tracker _

[issue24636] re.search not respecting anchor markers in or-ed construction

2015-07-15 Thread Almer Tigelaar
New submission from Almer Tigelaar: >From the documentation ^ should restrict the matching of re.search to the >beginning of the string, as mentioned here: >https://docs.python.org/3.4/library/re.html#search-vs-match However, this doesn't always seem to work as the following example shows: re