View Single Post
Old 07-06-2012, 04:31 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
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.'
Jellby is offline   Reply With Quote