当前位置:   article > 正文

Python 正则 re.compile

Python 正则 re.compile

首先我们看下官方文档里关于的compile的说明:

[python] view plain copy
  1. re.compile(pattern, flags=0)  
  2. Compile a regular expression pattern into a regular expression object, which can be used for matching using its match() and search() methods, described below.The expression’s behaviour can be modified by specifying a flags value. Values can be any of the following variables, combined using bitwise OR (the | operator).  
[python] view plain copy
  1. <
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号