О.Г.дов.
I'm trying to match the "О.Г ." in this fragment. Normally, initials should be without spaces, so I need a regex that can account for optional spaces.
I've been using:
[А-Я]\s*\.\s*[А-Я]\s*\.\s*
But it seems to not match this correctly. I'm unsure why.Note, I am typing \\
in java before "s" and ".". Could someone spot an error?