Golden Rule of Regex Matching
Longest match rule:
- "When consuming its input, the scanner determines the regular expression that matches the longest portion of the input."
{Is} { System.out.println("Got an 'is'"); }
{Island} { System.out.println("Got an 'island'"); }