为什么这个正则表达式不起作用?

I want to grab any data between these two div headers, and the code below should work, is there something I am not seeing?

preg_match_all('$\<div class\=\"productDescriptionWrapper\"\>(.*?)\<div class\=\"emptyClear\"\>$', $source, $match);

Thanks in advance!

Cory, typically you should be using DOMDocument to do this. Using regex to parse html is not considered good practice because it contains so many hidden follies and overcomplicates.

http://php.net/manual/en/class.domdocument.php