标签:正则 `` 信息 str 表达 通过 ble style 数字
语法 | 含义 | 表达实例 | 完整匹配匹配的字符串 |
---|---|---|---|
\A | 仅匹配字符串开头 | \Aabc | abc |
\Z | 仅匹配字符串末尾 | abc\Z | abc |
(?P | 分组,除了原有编号再指定一个额外的别名 | (?P | abcabc |
(?P=name) | 引用别名为 | (?P | 1abc1\n5abc5 |
主要用到方法如下:
```
标签:正则 `` 信息 str 表达 通过 ble style 数字
原文地址:https://www.cnblogs.com/guguobao/p/9420454.html