You could try a two-step (or three-step) process:
1. Replace all single word quotations cases with something that prevents a match in the next case. Something like (“[^ ]+)” and replace with \1¬”.
2. Do your normal search for unpunctuated quotes.
3. Remove all ¬
Anyway, you shouldn't do a global search and replace, there may be cases of multiple quoted words without punctuation, or single word speeches:
'What do you mean with "I don't know"?' he said. 'Weren't you listening?'
'No.'
|