Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74330
| References | <981c1f5f-2c19-4efc-8397-796bde07f39b@googlegroups.com> <CAPM-O+ytm9w8YKVqGh8tUROTDjjfbhMF7XXBY5eaFjN7AsgWGQ@mail.gmail.com> |
|---|---|
| Date | 2014-07-10 12:15 -0700 |
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
| Subject | Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11743.1405020017.18130.python-list@python.org> (permalink) |
----- 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