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?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'tutorial': 0.03; 'string.': 0.05; 'matches': 0.07; 'advice.': 0.09; 'character,': 0.09; 'subject:string': 0.09; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'normally,': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'thursday,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'meant': 0.20; 'header:User-Agent:1': 0.23; 'string,': 0.24; 'url:moin': 0.24; 'question': 0.24; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'on,': 0.29; 'url:wiki': 0.31; 'url:python': 0.33; 'running': 0.33; 'link.': 0.33; 'subject:the': 0.34; 'subject: (': 0.35; 'received:84': 0.35; 'but': 0.35; 'version': 0.36; 'really': 0.36; 'useful': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'clear': 0.37; 'thank': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'read': 0.60; 'url:3': 0.61; 'url:index': 0.63; 'july': 0.63; 'subject:. ': 0.67; 'link:': 0.72; '2001.': 0.84; 'examples.': 0.84
X-CM-Score 0.00
X-CNFS-Analysis v=2.1 cv=E5NDpMtl c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=u9EReRu7m0cA:10 a=D51q0DnlfiYA:10 a=ihvODaAuJD4A:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=_eM4jbbvoTp6Mr8Ekr0A:9 a=QEXdDO2ut3YA:10 a=JqDHKOE5s7YA:10
X-AUTH mrabarnett:2500
Date Thu, 10 Jul 2014 17:48:25 +0100
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version 1.0
To python-list@python.org
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>
In-Reply-To <47595855-295a-43ee-8b4b-98dda4466669@googlegroups.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11732.1405010910.18130.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405010910 news.xs4all.nl 2932 [2001:888:2000:d::a6]:55420
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74315

Show key headers only | 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