View Single Post
Old 09-13-2023, 06:35 PM   #5
fogice
Addict
fogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Timefogice possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 258
Karma: 49504
Join Date: May 2014
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
You could try a search for one or more spaces following a punctuation mark and replace with the punctuation mark and a single space.

Something like '(\p{P})\s+' and '\1 ' removing the 's.
Yup, that does it. Thanks. I was hoping there was a clickable option similar to "remove space between paragraphs" that I had overlooked, so I don't have to look this code up every time. I tried to learn regex once, but it didn't stick.
fogice is online now   Reply With Quote