View Single Post
Old 12-10-2022, 02:08 AM   #1
Dashcroft
Junior Member
Dashcroft began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2010
Device: Kindle Scribe
Regex expression to replace certain spaces with nonbreaking spaces

Hi,
I would like to automatically find and replace the spaces in "T. S. Eliot", "D. H. Lawrence", "F. R. Leavis" and similarly patterned names with non-breaking spaces. I've tried:

Find:
Code:
[A-Z]\.\s
Replace:
Code:
\g<0>&#nbsp;
But that still leaves the spaces in. What am I doing wrong and what might help in this case?
Dashcroft is offline   Reply With Quote