in reply to matching quotes
Don't you need to use \\ to get a \ within a charchter class? I'm pretty sure that \ is a meta charchter within a charchter class, otherwise you couldn't do something like [\[\]] to match either [ or ]. Then again I could be wrong. I have a regex at home that does exactly what you need, I'll post it when I get there.