m = re.match(r'(\w+) (\w+)(?P<sign>.*)', 'hello world!')
这句代码中的?P<sign>.*里的p是什么意思?或者给我一篇博客参考下用法。
欢迎选择我的课程,让我们一起见证您的进步~~
Python Regular Expression Guide
Here is another link to learn regular expressionsIntroduction to Python crawler seven regular expressions
In fact, it means named group in regular expression. You can think of this P as the abbreviation of the word Pattern
Python Regular Expression Guide
Here is another link to learn regular expressions
Introduction to Python crawler seven regular expressions
In fact, it means named group in regular expression. You can think of this P as the abbreviation of the word Pattern