http://www.perlmonks.org?node_id=948502


in reply to Re^2: Perl Regex Repeating Patterns
in thread Perl Regex Repeating Patterns

Putting a repeating quantifier after a capture simply does not do what you intend it to do, unless you only want to capture the last matched item in the repetition. And even then, it would be clearer in my opinion to explicitly state your assumption, by explicitly discarding the first repetitions:

/(?:[A-Z]{3})*([A-Z]{3})$/