Test, validate and match regular expressions
This regex matches author names in a citation list, capturing the given names/initials and the surname separately. It supports multiple given names, initials, and Unicode characters (including accented letters). Use it to invert the name order, e.g., transform 'John A. Doe' into 'Doe, John A.', for citations or bibliographies. The lookarounds ensure it works correctly at the start or after ' and '.