So I haven't used preg_match too terribly often but I found this example online for parsing a page to get text from div's:
preg_match("/<div class=\"topic\">(.*?)<div class=\"content\">(.*?)<\/div>/", $html, $matches);
Now everything looks familiar to me and I understand until I see the (.*?) What role does it play in preg_match?