/ Published in: PHP
![](/img/icon_sav.png?v3)
Replaces all links within href part of anchor in a HTML-String.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* * DO NOT USE THE PATTERN STRING DIRECTLY IN 'preg_match()' !!!! * */ $pattern = '/(?<=href\=")[^]]+?(?=")/';
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)