m = re.match(r'(\w+) (\w+)(?P<sign>.*)', 'hello world!')
这句代码中的?P<sign>.*里的p是什么意思?或者给我一篇博客参考下用法。
阿神2017-04-18 09:53:31
Here is another link to learn regular expressions
Introduction to Python crawler seven regular expressions
PHP中文网2017-04-18 09:53:31
In fact, it means named group in regular expression. You can think of this P as the abbreviation of the word Pattern