1
/*
2
* DO NOT USE THE PATTERN STRING DIRECTLY IN 'preg_match()' !!!!
3
*
4
*/
5
$pattern
=
'/(?<=href\=")[^]]+?(?=")/'
;
6
$replacedHrefHtml
= preg_replace(
,
$replacement
$html
);
7