View Single Post
Old 07-29-2020, 12:16 PM   #24
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by theducks View Post
Me neither stripping dot and or optional spaces

Search <<<Not tested
([A-Z])\.*\s*([A-Z])\.*\s*(.+)

Replace
\1\2 \3
Hi Ducks,
your code works for
C. S. Lew --> CS Lew

But for Charles Q. Smith
it becomes
Ch arles Q. Smith
(space between h and a. And dot after Q. isn't removed).


Bob T. Johnson --> Bo b T. Johnson
Bob A. B. Johnson --> Bo b A. B. Johnson
droopy is offline   Reply With Quote