Hi everyone,
I’m editing a long manuscript in LibreOffice Writer and I’m trying to catch places where two sentences are jammed together with no space after the first sentence ends.
I need to find any instance where a sentence ends with . ! ? (and optionally a closing quote ") and the next sentence starts immediately with either:
- a capital letter, or
- an opening quote followed by a capital letter
—with no space in between.
It doesn’t matter what punctuation the sentence ends with — I just want to catch the missing space before the next sentence begins.
I’ve tried several regex patterns but none are working reliably. Can someone please suggest the correct regular expression for this?
Example of what I want to find:
- core behind.Johnny (should be core behind. Johnny)
- end?”What (should be end?” What)
- really!“Next (should be really!” Next)
I asked Google, but it keeps giving me the wrong answers.
Any help would be greatly appreciated!
Thanks in advance!