View Single Post
Old 12-22-2021, 06:55 PM   #11
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,589
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by phossler View Post
Actually I had thought for the Find

Code:
([A-Z]\.){2,6} 

and 

([A-Z]\.){2,6}
where there is a trailing space after the first case

That would Find A.B.C.<space> but I couldn't figure out how to do the Replace (trailing space) since it depends on the number of letters in the acronym, 3 in this case

Code:
\1\2\3
I think it doesn't matter if some of them aren't "filled"? E.g., for a simple example if you were using ([a-z]){1,3} for the search and x\3x for the replacement I'm guessing that you'd get xx when it matched aa. The \3 would be empty.
hobnail is offline   Reply With Quote