You might also consider looking at Text::Balanced.
Cheers,
JohnGG
In reply to Re: Extracting multiple matches from Reg Ex by johngg in thread Extracting multiple matches from Reg Ex by rookie_monk