import re
u = "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"


def match_by_re(str):
    pattern = re.compile(u, re.S)
    res = pattern.findall(string=str)
    if res: return res[0]

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案