Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74330
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <fomcl@yahoo.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.111 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.78; '*S*': 0.00; 'python,': 0.02; 'yet.': 0.04; 'expressions': 0.07; 'exception.': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'example?': 0.16; 'simplified': 0.16; 'url:re': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'url:moin': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'chapter': 0.26; 'header:In- Reply-To:1': 0.27; 'to:2**1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'url:wiki': 0.31; 'quotes': 0.31; 'regular': 0.32; 'quite': 0.32; 'url:python': 0.33; '-----': 0.33; 'header:Received:9': 0.33; 'subject:the': 0.34; 'could': 0.34; 'but': 0.35; 'hi,': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'subject:': 0.39; 'quote': 0.39; 'how': 0.40; 'read': 0.60; 'received:98.137': 0.60; 'url:content': 0.60; 'free': 0.61; 'new': 0.61; 'simple': 0.61; 'first': 0.61; 'here:': 0.62; 're:': 0.63; 'july': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'sample': 0.67; 'header:Reply- To:1': 0.67; 'url:pdf': 0.68; 'email addr:python.org"': 0.68; 'link:': 0.72; 'jul': 0.74; 'url:images': 0.83; 'received:98.138.229': 0.84; 'skip:: 20': 0.84; 'joel': 0.91; 'sheet': 0.93 |
| X-Yahoo-Newman-Property | ymail-4 |
| X-Yahoo-Newman-Id | 286686.15726.bm@omp1069.mail.gq1.yahoo.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1405019716; bh=dp3LXbsCbIx9tTb8PRymD6oUBHv9k2ArlPe/+5TRZ1w=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=t0hpA7ztzDoqVnbniQ9qHKIBXpfjI6v9BP79jyTQa1XsMGIOHCRn/DGI1pChUU2xzNlMWHxb3SIhGTa9tS2zpn2XjZONIkUQlNRi1Lc6+kRe6BqFdv/r94Er6zyaUPjH0dwZ6IyoqRFyT2VwnJyAKrdNqQj+Te3Vfr4n9oqumRA= |
| X-YMail-OSG | kc4UUDcVM1kVBuokmxIUeNPY00vU94YVxyJBGmwg2hR9BfB v0QY1HIjAEnbK2iT.kGZ9wC3DMPDGZf2VW.b4Xi075677S_b0gl0eDua7QlI j06cZoljNJt8Um8S4u46Wgz5BADITKz3qbO8MiFxLUEr9Hk3M0x2oTugjDwK pbeTdl8Asfxp9KByLMaFqISuwCefLHldh3HnDqjTIBMsiypL87KGZpMwv2it o12QqA9blR.L3vlVc6nxBs3mkmYWRZ0WEmoxw9C4SU7LvkRTGTGcrgZNS3.o jv1iHsalXQIhR4F8RaNioQIgaZguSCwDuomiGt2HX05IJ5EGq5m4jYLF_xvn _tu5yk_BQ1T58CsgcyohJ5m0d.756EVQ_oZ99uZ1kiMMFOdnJz5z9z.ZmAvU eSClPLyhijojywmVy.waV1v978F6Ub5byzn.oYyfBJL2la2xjRPmd1hpARab tqPDtJvaz67Yi2mqzTPna9eMJkAyCbxq2OcjF_CSRnoJD_aopj0EijI0esSF VVPsZD5wteu64KA8opvksduiLYHTQtGH.itwA3FjiA6dsAPSBKT31nxR8Thg TApzU6.REQNAyoRJrs7SjtU...vJ2E2KiNtr5UuWqEFGGjl7rkkgIJCjzAgT E9mCeZWcGtvbpH3X7.Jx1ahM5zxYBp1V0CUmeh3lQpkUx.uWcFGEUO8RGYIW p9lszNP02JvJ5rniwA.dwspb. |
| X-Rocket-MIMEInfo | 002.001, CgotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tCgo.IEZyb206IEpvZWwgR29sZHN0aWNrIDxqb2VsLmdvbGRzdGlja0BnbWFpbC5jb20.Cj4gVG86IGZsIDxyeGp3Zzk4QGdtYWlsLmNvbT4KPiBDYzogInB5dGhvbi1saXN0QHB5dGhvbi5vcmciIDxweXRob24tbGlzdEBweXRob24ub3JnPgo.IFNlbnQ6IFRodXJzZGF5LCBKdWx5IDEwLCAyMDE0IDc6MDUgUE0KPiBTdWJqZWN0OiBSZTogSG93IHRvIGRlY2lwaGVyIDpyZS5zcGxpdChyIihcKFwoW14pXStcKVwpKSIgaW4gdGhlIGV4YW1wbGUKPiAKPiBPbiABMAEBAQE- |
| X-Mailer | YahooMailWebService/0.8.194.680 |
| References | <981c1f5f-2c19-4efc-8397-796bde07f39b@googlegroups.com> <CAPM-O+ytm9w8YKVqGh8tUROTDjjfbhMF7XXBY5eaFjN7AsgWGQ@mail.gmail.com> |
| Date | Thu, 10 Jul 2014 12:15:16 -0700 |
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
| Subject | Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example |
| To | Joel Goldstick <joel.goldstick@gmail.com>, fl <rxjwg98@gmail.com> |
| In-Reply-To | <CAPM-O+ytm9w8YKVqGh8tUROTDjjfbhMF7XXBY5eaFjN7AsgWGQ@mail.gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | Albert-Jan Roskam <fomcl@yahoo.com> |
| 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.11743.1405020017.18130.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1405020017 news.xs4all.nl 2893 [2001:888:2000:d::a6]:49275 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74330 |
Show key headers only | View raw
----- Original Message ----- > From: Joel Goldstick <joel.goldstick@gmail.com> > To: fl <rxjwg98@gmail.com> > Cc: "python-list@python.org" <python-list@python.org> > Sent: Thursday, July 10, 2014 7:05 PM > Subject: Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example > > On Thu, Jul 10, 2014 at 11:37 AM, fl <rxjwg98@gmail.com> wrote: >> Hi, >> >> This example is from the link: >> >> https://wiki.python.org/moin/RegularExpression >> >> >> I have thought about it quite a while without a clue yet. I notice that it > uses >> double quote ", in contrast to ' which I see more often until now. > > Double quotes or single quotes -- doesn't matter. > >> It looks very complicated to me. Could you simplified it to a simple > example? >> > You might read up first here: https://docs.python.org/2/library/re.html > > If you are just new to learning python, regular expressions are not a > good place to start. But if you insist, the page you are looking at > is more of a cheat sheet . The free sample chapter from Mark Summerfield's book is about regular expressions: http://www.informit.com/content/images/9780321680563/samplepages/0321680561_Sample.pdf That whole book is superb, and the regex chapter is no exception.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to decipher :re.split(r"(\(\([^)]+\)\))" in the example fl <rxjwg98@gmail.com> - 2014-07-10 08:37 -0700
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Peter Otten <__peter__@web.de> - 2014-07-10 18:49 +0200
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example MRAB <python@mrabarnett.plus.com> - 2014-07-10 18:01 +0100
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-10 13:05 -0400
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Albert-Jan Roskam <fomcl@yahoo.com> - 2014-07-10 12:15 -0700
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Cameron Simpson <cs@zip.com.au> - 2014-07-11 11:29 +1000
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Roy Smith <roy@panix.com> - 2014-07-10 22:18 -0400
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Tim Chase <python.list@tim.thechases.com> - 2014-07-10 21:37 -0500
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Roy Smith <roy@panix.com> - 2014-07-10 23:33 -0400
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Chris Angelico <rosuav@gmail.com> - 2014-07-11 14:31 +1000
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example alister <alister.nospam.ware@ntlworld.com> - 2014-07-11 08:00 +0000
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Steven D'Aprano <steve@pearwood.info> - 2014-07-11 09:04 +0000
Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example Albert-Jan Roskam <fomcl@yahoo.com> - 2014-07-11 08:18 -0700
csiph-web