What does (A ``quote'' is the character used to open the string, i.e. either ' or ".) mean?

Ian Kelly ian.g.kelly at gmail.com
Thu Jul 10 12:22:20 EDT 2014


On Thu, Jul 10, 2014 at 9:23 AM, fl <rxjwg98 at gmail.com> wrote:
> Is '\A' the same with '^'?
> Is '\Z' the same with '$'?

The meanings of these are explained at:
https://docs.python.org/library/re.html#regular-expression-syntax

Outside of multiline mode, they're equivalent. In multiline mode, ^
and $ will also match at the beginning and end of individual lines,
while \A and \Z still only match the beginning and end of the input
string.



More information about the Python-list mailing list