Regular expression to filter url and image address in string
$form_html = preg_replace ( '/(?<=saction="|ssrc="|shref=")(?!http:|Web page special effects)(.*?)(?="s)/e', 'add_url ($url, '1')', $form_html );
http://www.bkjia.com/PHPjc/445433.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445433.htmlTechArticleRegular expression for filtering url and image address in string $form_html = preg_replace ( /(?=saction=| ssrc=|shref=)(?!http:|Web page special effects)(.*?)(?=s)/e, add_url($url, 1), $form_html );...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn