in reply to matching quotes

It's not just a regex, but check out Text::Balanced from CPAN.

Russ