I need help with some regex. I want to create abbreviations by capturing the first uppercase letter o each 2-N words. I want to ignore all punctuation (Clean Tool?). I want to ignore "and" and "&".
I know how to target an uppercase letter at the start of each word e.g. ^[A-Z] or ^[[:upper:]]. I do not now how to adjust for the 2-N variability in the number of words.
Thanks.
| Charlie Romea Sierra | CRS |
| Papa, Delta Sierra | PDS |
| Papa, Charlie Alpha | PCA |
| Tango Down | TD |
| Whiskey Tango Foxtrot | WTF |
| Sierra November, Alpha Foxtrot Uniform | SNAFU |
| Sierra and Charlie November | SCN |
| Mike & India Kilo Echo | MIKE |