preg_match_all('/
(.*?)<\/div>/', $results, $titles); In the place of **1**: 1. Empty 2. ' style="margin:2.5em"'