re的search与match

1.search. 会扫描整个字符串   匹配任意位置能第一个匹配的位置,直到结束。

2.match.会从第一个字符开始匹配 

原文地址:https://www.cnblogs.com/ilovewuzhaoxia/p/5253173.html