I'm finding this fairly hard to explain, so I'll kick off with a few examples of before/after of what I'd like to achieve.
Example of input:
Hello.World
This.Is.A.Test
The.S.W.A.T.Team
S.W.A.T.
s.w.a.t.
2001.A.Space.Odyssey
Wanted output:
Hello World
This Is A Test
The SWAT Team
SWAT
swat
2001 A Space Odyssey
Essentially, I'd like to create something that's capable of splitting strings by dots, but at the same time handles abbreviations.
My definition of an abbreviation is something that has at least two characters (casing irrelevant) and two dots, i.e. "A.B." or "a.b.". It shouldn't work with digits, i.e. "1.a.".
I've tried all kinds of things with regex, but it isn't exactly my strong suit, so I'm hoping that someone here has any ideas or pointers that I can use.