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