in reply to Searching with MySQL (and REGEXPs)
Have you considered Text::Balanced for the quote parsing?
After Compline,Zaxo