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


Groups > comp.lang.python > #74327

Re: I am confused about ' and "

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'tutorial': 0.03; 'string': 0.09; 'strings.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'missed': 0.12; 'expressions,': 0.16; 'tackling': 0.16; 'url:html#re': 0.16; 'url:re': 0.16; 'url:split': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'looked': 0.18; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'either.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'gives': 0.31; 'regular': 0.32; 'url:python': 0.33; 'raw': 0.33; 'comment': 0.34; 'table': 0.34; 'operations': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'pm,': 0.38; 'quote': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'expression': 0.60; 'tell': 0.60; 'url:3': 0.61; 'to:addr:gmail.com': 0.65; 'hour': 0.70; 'link:': 0.72; 'jul': 0.74; 'quote,': 0.84; 'joel': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EK3SsS5iMRJl/vim20TVrSWY3pDkUthfMDfp9+KBJC0=; b=RDmVhg42hZRLU0MK5zMM8XispNjvCPLExs1nIQBKPtx0evoJHmySbE+TGUtCEx6yqp p+p9ByuYYp4TSTWBnaJ80rsZ95Fukpa1APlzaX9FrBqoDi6u+tiAdCt6GM3OBsFfWV22 4X6jYSpftU6Mb4KYZf7NUUrTeUIawK0iyS3dd1xLvBAXUG81h0Pj3n+C8luWTROxcHJ6 wqigSJ8UTTjFIp/f/1+60u8Khu9QUgXD/LE1m5RlIntPkujcwHSBdtgYLmli0dQi+zYJ 2R9lpTpxXjt3cvMMLj+Brm3ngJvulYNrYD2v9HovFAx8OXQYM22JryTAeLOWjxz4bHTf U1xw==
MIME-Version 1.0
X-Received by 10.58.34.169 with SMTP id a9mr46866210vej.5.1405015929030; Thu, 10 Jul 2014 11:12:09 -0700 (PDT)
In-Reply-To <cfa25009-b200-4fcc-beb7-83634546cd20@googlegroups.com>
References <cfa25009-b200-4fcc-beb7-83634546cd20@googlegroups.com>
Date Thu, 10 Jul 2014 14:12:08 -0400
Subject Re: I am confused about ' and "
From Joel Goldstick <joel.goldstick@gmail.com>
To fl <rxjwg98@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
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.11741.1405015938.18130.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405015938 news.xs4all.nl 2859 [2001:888:2000:d::a6]:58083
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74327

Show key headers only | View raw


On Thu, Jul 10, 2014 at 1:01 PM, fl <rxjwg98@gmail.com> wrote:
> Hi,
>
> It is still in the Regular expression operations concept, this link:

You must have missed my comment about quote and double quote.  In
python you can write a string using either.  Just make sure if you
start with double quote, you must end with double quote.  Before
tackling regular expressions, go to the python tutorial and learn
about strings.
>
> has example using single quote mark: '
>
> https://docs.python.org/2/library/re.html#re.split
>
>
> While in this link:
>
> https://docs.python.org/3/howto/regex.html
>
>
> It gives table with quote: "
>
> Regular String  Raw string
> "ab*"   r"ab*"
> "\\\\section"   r"\\section"
> "\\w+\\s+\\1"   r"\w+\s+\1"
>
>
> and link:
>
> https://docs.python.org/2/library/re.html
>
>
> m = re.match(r"(\w+) (\w+)", "Isaac Newton, physicist")
>
>
> Please tell me because I have looked it around for one hour about it.
>
> Thanks,
> --
> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

I am confused about ' and " fl <rxjwg98@gmail.com> - 2014-07-10 10:01 -0700
  Re: I am confused about ' and " John Gordon <gordon@panix.com> - 2014-07-10 17:16 +0000
  Re: I am confused about ' and " Chris Angelico <rosuav@gmail.com> - 2014-07-11 03:57 +1000
  Re: I am confused about ' and " Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-10 14:12 -0400
  Re: I am confused about ' and " Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-10 20:25 +0200

csiph-web