Making a quantifier match as few characters as possible
<?php // find all <em>emphasized</em> sections preg_match_all('@<em>.+?</em>@', $html, $matches); ?>