Код: Выделить всё
<a href="http://cdn.xyz.com/media/info.pdf" target="_blank">
Код: Выделить всё
preg_match_all( '/(<[a-zA-Z]+[^>]+>)/ism', $str, $matches);
Как мне реструктурировать шаблон?
Подробнее здесь: https://stackoverflow.com/questions/291 ... substrings