import re

class Retest:
def __init__(self,string,path):
self.string = string
self.path = path

def retest(self):
res = re.search(self.string,self.path,flags=0).group()
# res.group()
print res
return

if __name__ == '__main__':
a = 'helloworld'
b = 'he(.+)ld'
  c = Retest(b,a)
  c.retest()

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-11-13
  • 2022-12-23
  • 2021-11-24
  • 2021-11-24
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-09-11
  • 2022-12-23
相关资源
相似解决方案