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


Groups > comp.lang.python > #80499

Re: What does (?P<name>) pattern syntax do?

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: What does (?P<name>) pattern syntax do?
Date 2014-11-11 10:19 +1100
References <dca748b5-8c26-4908-bf49-3cd694b37bfb@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.15644.1415661610.18130.python-list@python.org> (permalink)

Show all headers | View raw


satishmlmlml@gmail.com writes:

> What does ?P and <part1> match in the following piece of code?

Learn about Python's regular expression features from the documentation
<URL:https://docs.python.org/3/library/re.html>.

Experiment with regular expressions using online tools such as
<URL:https://pythex.org/>.

-- 
 \       “From the moment I picked your book up until I laid it down I |
  `\        was convulsed with laughter. Someday I intend reading it.” |
_o__)                                                    —Groucho Marx |
Ben Finney

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


Thread

What does (?P<name>) pattern syntax do? satishmlmlml@gmail.com - 2014-11-10 15:13 -0800
  Re: What does (?P<name>) pattern syntax do? Ben Finney <ben+python@benfinney.id.au> - 2014-11-11 10:19 +1100

csiph-web