I need to detect first “names” that contain or consist of capitalized initials and separate the initials with periods. For example
RR → R.R.
R R → leave alone
RRe → leave as is
Edward RR → Edward R.R.
ÉÉ → É.É.
As I see it, the rules would be that the search would find one or more contiguous letters surrounded by word boundaries.
It doesn’t sound hard, but when I try my (amateurish) solutions in RegExRX they all fail.
Any suggestions?
7 posts - 6 participants