Extract Url using Regex

前端 未结 2 1554
一整个雨季
一整个雨季 2021-01-26 12:34

I\'ve been searching for at least 2hrs but I can\'t find any pattern to extract following Urls using regex. I went with too many patterns which described in many articles. But I

相关标签:
2条回答
  • 2021-01-26 13:06

    Salam. Try this one:

    https?://[^\s]+
    
    0 讨论(0)
  • 2021-01-26 13:14

    https?://[\w\.]+\.\w+(:\d{1,5})?(/[\w?&.=]+)?

    0 讨论(0)
提交回复
热议问题