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

satishmlmlml at gmail.com satishmlmlml at gmail.com
Mon Nov 10 18:13:31 EST 2014


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

re.search('(?P<part1>\w*)/(?P<part2>\w*)', '...aaa/bbb/ccc]').groups()



More information about the Python-list mailing list