Merlijn van Deen added the comment: As far as I can see, the regex is correct:
\Z Matches only at the end of the string. (?iLmsux) The group matches the empty string; the letters set the corresponding flags: (...) - re.M (multi-line), - re.S (dot matches all) See https://docs.python.org/3.4/library/re.html Do you have an example where the regex does not match a file it should match (or matches a file it shouldn't)? ---------- nosy: +valhallasw _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24108> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com