Test, validate and match regular expressions
This regex matches capital letters that appear as author initials, specifically when followed by another capital letter, the word 'and', or the end of the line. It is useful for adding missing periods after initials in author lists, e.g., converting 'JFK' to 'J.F.K.' or handling names like 'John F Kennedy'.