3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '#TAGLIST_&lt;a href=&quot;search.php?tag={TAG}&quot;&gt;{TAG}&lt;/a&gt;&amp;nbsp;# &lt;br&gt;'; preg_match("/TAGLIST_&lt;a\s*href\s*=\s*&quot;(.*)&quot;&gt;/ims", $str, $matches); print_r($matches);
Output for 4.3.0 - 7.1.0
Array ( [0] => TAGLIST_&lt;a href=&quot;search.php?tag={TAG}&quot;&gt; [1] => search.php?tag={TAG} )