in reply to Matching a string in a parenthesized block (regex help)

Ah darn it I forgot

local $/;

That's one mistake...