Home > Backend Development > PHP Tutorial > Regular expression to filter url and image address in string_PHP tutorial

Regular expression to filter url and image address in string_PHP tutorial

WBOY
Release: 2016-07-20 11:01:36
Original
1046 people have browsed it

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 );


www.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 );...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template