<div>
<span class="dark_text">Type:</span>
<a href="https://myanimelist.net/topanime.php?type=var1">var2</a></div>~
I need to make preg match all
the variable var2
regardless of what is written in var 1
example:
preg_match_all('!<a href="https://myanimelist.net/topanime.php?type=var1">(.*?)</a></div>',$result,$match);