/ Published in: PHP
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\=")[^]]+?(?=")/';