Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3615

Regex to identify consecutive initials in name and add period separators

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 3615

Trending Articles