close spaces between comma and full stop

FrecklePaw
StarLounger
Posts: 56
Joined: 12 Aug 2020, 08:40

close spaces between comma and full stop

Post by FrecklePaw »

I've taken some stuff out of my document via find and replace, but it's left some spaces in between the comma and full stops - how can I close the gap automatically (there are several instances throughout the doc and to save me doing it manually)?
I attach a pic of what I mean the n of the previous word and the M of the new sentence - see gaps.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 72563
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: close spaces between comma and full stop

Post by HansV »

In the Replace dialog, enter

^w,

in the 'Find what' box, and

,

in the 'Replace with' box. Then click 'Replace All'. The code ^w stands for "white space" - any number of spaces and tabs.
Regards,
Hans

FrecklePaw
StarLounger
Posts: 56
Joined: 12 Aug 2020, 08:40

Re: close spaces between comma and full stop

Post by FrecklePaw »

Thanks!