Properly Matching a IDN URL

前端 未结 3 1337
刺人心
刺人心 2020-12-04 00:42

I need help building a regular expression that can properly match an URL inside free text.

  • scheme
    • One of the follow
3条回答
  •  一向
    一向 (楼主)
    2020-12-04 01:27

    If you require the protocol and aren't worried too much about false positives, by far the easiest thing to do is match all non-whitespace characters around ://

提交回复
热议问题