han8809 发表于 2018-8-14 10:36:15

python_正则表达式

re(re.match(,)).span()(re.match(,))re  
line = matchobj = re.match(,line,re.M|re.I)matchobj:    (),matchobj.group()    (),matchobj.group()    (),matchobj.group()    :    ()re
  
line = matchobj = re.match(,line,re.M|re.I)matchobj:    (),matchobj.group():    ()
  
matchobj = re.search(,line,re.M|re.I)matchobj:    (),matchobj.group():    ()re
  
phone = num = re.sub(,,phone)(),num
  
num = re.sub(,,phone)(),numredouble(matched):
  
    value = (matched.group())    (value * )
  
s = (re.sub(,double,s))
页: [1]
查看完整版本: python_正则表达式