How to match URIs in text?

后端 未结 7 656
轮回少年
轮回少年 2020-12-10 20:51

How would one go about spotting URIs in a block of text?

The idea is to turn such runs of texts into links. This is pretty simple to do if one only considered the ht

相关标签:
7条回答
  • 2020-12-10 21:48

    For a lot of the protocols you could just search for "://" without the quotes. Not sure about the others though.

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