Python's re
module says this:
'^'
(Caret.) Matches the start of the string, and in MULTILINE mode also matches immediately after each newline.
I want to use MULTILINE but I want to require a match at the beginning of the string (not just the beginning of a line). Is there a way to do this?