Skip to main content
Inspiring
July 13, 2024
Answered

Search and replace for an absence

  • July 13, 2024
  • 1 reply
  • 439 views

I am editing a book with a lot of speech in the text and so a lot of  double quotes. The scan has missed a large number of full stops at the end of sentences. So it might end "...and there the matter rested"

What I want to do is search for every double right quotation mark that is not preceded by a full stop and replace it with full stop plus double right quotation mark. Is there some clever, possibly GREP way to do that or do I have to search every sentence?

This topic has been closed for replies.
Correct answer James Gifford—NitroPress

GREP will handle this just fine.

 

Wait, though — the solution I posted and you probably got in email isn't correct. Give me a minute to correct the GREP string.

ETA: See corrected string in next post.

1 reply

James Gifford—NitroPress
Legend
July 13, 2024

GREP will handle this just fine.

 

Wait, though — the solution I posted and you probably got in email isn't correct. Give me a minute to correct the GREP string.

ETA: See corrected string in next post.

m5heathAuthor
Inspiring
July 13, 2024

Thank so much for that clever but simple solution without GREP - and I will make a note of the GREP solution as  well. I just love this community!!!