Test, validate and match regular expressions
This Java regex matches a string consisting of exactly two alphabetic words separated by a dot, like 'john.doe' or 'first.last'. It extracts the words into two named capturing groups, 'first' and 'second', making it easy to retrieve the individual components. Using the case-insensitive flag, it handles both uppercase and lowercase letters. It is commonly used for parsing usernames, simple domain names, or configuration keys.