Im new to regular expressions so any help would be greatly appreciated.
Basicly im trying to extract data from a web page, i am reading the web page into a string using Snoopy then i want to extract information contained in various tags.
So far i have got it somewhat working
$pattern = '/<h2 class="microText">.*<\/h2>/s';
$info = preg_match($pattern,$text,$matches);
this returns what i want, the only problem is that it misses the first </h2> tag and returns from the second.
any idea what could be happening?
Thanks