I assume that with "title" you refer to the contents of the h2 tag.
$text = '<div class="dealsListS">
<h2>contents</h2>
<div class="thumbWrapper">images</div>
</div>';
preg_match( '~<div class="dealsListS">\s*<h2>(.*?)</h2>\s*<div class="thumbWrapper">(.*?)</div>\s*</div>~is'
, $text, $matches
);
$title = $matches[1];
$thumbs = $matches[2];