in reply to I just cannot figure out the greedy regex

Can you reply with a few more pieces of information? I'd like to see:

If you just want to remove quote marks, something simple would be:

$text =~ tr/'"//d;

There's no semantic or syntactical analysis there, though, so it might not be appropriate.