Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80498
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-11-10 15:13 -0800 |
| Message-ID | <dca748b5-8c26-4908-bf49-3cd694b37bfb@googlegroups.com> (permalink) |
| Subject | What does (?P<name>) pattern syntax do? |
| From | satishmlmlml@gmail.com |
What does ?P and <part1> match in the following piece of code?
re.search('(?P<part1>\w*)/(?P<part2>\w*)', '...aaa/bbb/ccc]').groups()
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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