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


Groups > comp.lang.python > #74293

How to write match nth grouped subexpression?

X-Received by 10.42.40.148 with SMTP id l20mr22358722ice.12.1404982644172; Thu, 10 Jul 2014 01:57:24 -0700 (PDT)
X-Received by 10.182.61.9 with SMTP id l9mr253009obr.1.1404982644039; Thu, 10 Jul 2014 01:57:24 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!hn18no58066igb.0!news-out.google.com!gf2ni4igb.0!nntp.google.com!r10no519670igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Thu, 10 Jul 2014 01:57:23 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=64.229.140.25; posting-account=SZ_svQkAAACWRFG2bDA-zgq8ILyl4-vo
NNTP-Posting-Host 64.229.140.25
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <53ada36b-e1ce-4487-b9ac-0a162e3da8c3@googlegroups.com> (permalink)
Subject How to write match nth grouped subexpression?
From rxjwg98@gmail.com
Injection-Date Thu, 10 Jul 2014 08:57:24 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:74293

Show key headers only | View raw


Hi,

It says that: match checks for a match only at the beginning of the string.
Then, it also says that: \1...\9	Matches nth grouped subexpression.

I don't know how to write a script to include grouped subexpression in match?


Thanks, 

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


Thread

How to write match nth grouped subexpression? rxjwg98@gmail.com - 2014-07-10 01:57 -0700
  Re: How to write match nth grouped subexpression? Cameron Simpson <cs@zip.com.au> - 2014-07-10 19:50 +1000

csiph-web