I'm trying to extract an array of "<div>" and I am confounded by why this these two patterns work...
preg_match_all('/<div class="date">.*?/m',$htm,$a);
preg_match_all('/<div.*?</div>/m',$htm,$a);
But this one does not return anything...
preg_match_all('/<div class="date">.*?<\/div>/m',$htm,$a);
Is there some regular expresion magic I am missing?