Python regular expression again - match url

后端 未结 4 569
我在风中等你
我在风中等你 2020-12-03 22:37

I have such regexp:

 re.compile(r\"((https?):((//)|(\\\\\\\\))+[\\w\\d:#@%/;$()~_?\\+-=\\\\\\.&]*)\", re.MULTILINE|re.UNICODE)

But that

4条回答
  •  醉酒成梦
    2020-12-03 23:25

    Don't try to make your own regular expression for matching URLs, use someone else's who has already solved such problems, like this one.

提交回复
热议问题