in reply to Those greedy quantifiers!
What did I miss?
The \. at the beginning of the pattern will match the first period that satisfies the pattern, it doesn't matter if the .* is greedy or not. You probably want /\.([^.]*)\z/ instead.