Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74323

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

References <b0f2c8d2-c5a7-4b12-90f1-4aa8bfed9783@googlegroups.com> <mailman.11727.1405001662.18130.python-list@python.org> <47595855-295a-43ee-8b4b-98dda4466669@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-07-10 10:22 -0600
Subject Re: What does (A ``quote'' is the character used to open the string, i.e. either ' or ".) mean?
Newsgroups comp.lang.python
Message-ID <mailman.11738.1405013103.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jul 10, 2014 at 9:23 AM, fl <rxjwg98@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What does (A ``quote'' is the character used to open the string, i.e. either ' or ".) mean? fl <rxjwg98@gmail.com> - 2014-07-10 07:04 -0700
  Re: What does (A ``quote'' is the character used to open the string,  i.e. either ' or ".) mean? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-10 16:14 +0200
    Re: What does (A ``quote'' is the character used to open the string,  i.e. either ' or ".) mean? fl <rxjwg98@gmail.com> - 2014-07-10 08:23 -0700
      Re: What does (A ``quote'' is the character used to open the string,  i.e. either ' or ".) mean? MRAB <python@mrabarnett.plus.com> - 2014-07-10 17:48 +0100
      Re: What does (A ``quote'' is the character used to open the string,  i.e. either ' or ".) mean? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-10 10:22 -0600
  Re: What does (A ``quote'' is the character used to open the string,  i.e. either ' or ".) mean? Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-10 10:14 -0400

csiph-web