除了标准文档外,Andrew Kuching撰写的文章“Regular Expession HOWTO”(HTTPS://docs.python.org/3/howto/regex.html)也是很有用的python正则表达式学习资料。
python正则表达式包括三步:
1.将正则表达式编译为pattern实例
2.使用pattern匹配文本,返回匹配结果,没有结果返回None
3.使用match获得分组信息
python正则表达式实例:
1.python通过test命令调用darknet已经训练好的模型
2.LeetCode第十题
3.正则表达式github教材:https://github.com/ziishaned/learn-regex/blob/master/translations/README-cn.md