Extract URLs from text in PHP

后端 未结 14 2230
野趣味
野趣味 2020-11-22 13:29

I have this text:

$string = \"this is my friend\'s website http://example.com I think it is coll\";

How can I extract the link into another

14条回答
  •  庸人自扰
    2020-11-22 13:44

    This Regex works great for me and i have checked with all types of URL,

    
    

    Checked with lots of URL's can find here http://www.rubular.com/r/bFHobduQ3n

提交回复
热议问题