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


Groups > comp.lang.python > #74315

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

Date 2014-07-10 17:48 +0100
From MRAB <python@mrabarnett.plus.com>
Subject 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>
Newsgroups comp.lang.python
Message-ID <mailman.11732.1405010910.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-07-10 16:23, fl wrote:
> On Thursday, July 10, 2014 10:14:14 AM UTC-4, Chris "Kwpolska" Warrick wrote:
>> >
>>
>>
>> Please don't learn from this link.  It's from 2001.  You should learn
>>
>> from modern documentation: https://docs.python.org/ (if not running
>>
>> 3.4.x, change the version in the top)
>>
>>
>>
>> You also should not read the language reference, it's meant for people
>>
>> who really care about what's under the hood.  The official tutorial is
>>
>> better for learning: https://docs.python.org/3/tutorial/index.html
>>
>>
> Thank you for your advice. My OP was originated from a question from this link:
> https://wiki.python.org/moin/RegularExpression
>
> It has several useful examples. Several of them are not clear to me. Please
> explain it to me.
>
> Is '\A' the same with '^'?
> Is '\Z' the same with '$'?
>

\A matches at the start of the string.

\Z matches at the end of the string.

Normally, ^ matches at the start of the string, but if the re.MULTILINE
flag is turned on, it matches at the start of a line.

Normally, $ matches at the end of the string, or just before the final 
'\n' if that '\n' is the final character, but if the re.MULTILINE flag
is turned on, it matches at the end of a line.

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