search

Home  >  Q&A  >  body text

如何才能从文本中提取http网址

如何才能从文本中提取http网址???有人知道吗?
代言代言2848 days ago1148

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-19 17:06:06

    preg_match_all('/([^"\'`])(https?:\/\/[a-zA-Z0-9_\?=%&#\.\/-]+?)([^a-zA-Z0-9_\?=%&#\.\/-])/Usi',$content,$out,PREG_SET_ORDER);


    reply
    0
  • Cancelreply