Match:
(?i)\b((https?|ftp|file)://|(www|ftp)\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[A-Z0-9+&@#/%=~_|$]
Replace:
<a href="\g<0>">\g<0></a>
Python 正则表达式将URL转化为带链接的URL
最新推荐文章于 2023-12-12 18:27:05 发布
Match:
(?i)\b((https?|ftp|file)://|(www|ftp)\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[A-Z0-9+&@#/%=~_|$]
Replace:
<a href="\g<0>">\g<0></a>