PDA

View Full Version : How would I change "aB" to "a. B"?



Helen269
02-28-2020, 07:09 AM
Hi everyone. I have some text that I would like to automatically insert sentence breaks into. At some points in the text there are instances where one sentence endsThen another one begins with no full stops/periods or spaces between.

I'd like to run code that finds lowercase/uppercase pairs and inserts ". " between them while keeping the same letters.

I think it's something like if ([a-z])([A-Z]) then ([a-z]). ([A-Z]) but this doesn't work. Can anyone help, please? Many thanks! :-)

Paul_Hossler
02-28-2020, 08:13 AM
Check 'Use Wildcards'

Find: ([a-z])([A-Z])

Replace: \1. \2


26099

Helen269
02-28-2020, 08:36 AM
Yes, that works, brilliant. Thank you!