there is such a line
var_dump($string) string(125) "<div style="position: relative"><a href="/lists/m_act%5Bcountry%5D/1/">США</a></div>" I'm trying to exclude <div style="position: relative"><a href="/lists/m_act%5Bcountry%5D/1/"></a></div> while only taking the first part like this
$regOne='/<div (.*)="(.*)"><a href="(.*)/\d/">/'; $repl=""; var_dump(preg_split($regOne,$repl,(string)$string)); I get the preg_split () expects parameter 3 to be long, string given
preg_splitfunction does not do what you need. Php.net/manual/ru/function.preg-split.php Usepreg_replacefor replacement. - Visman