in reply to Matching Problem

The grouping is a little off:
$title =~/(.*?)((?:\w+|\W+)\.\w+)(.*?)/ig