Querying number of chars

Hello List!
I’m trying to extract trees [1] which species starts with uppercase, followed by 2 lowercases.

It seems that [A-Z][a-z]{2} is rather greedy, returning species of any length.
Where am I wrong?

[1] overpass turbo

Hi.

By default, regexp match any part of the tag value. You did put a ^ at the beginning, you just have to add a $ at the end, to say that after the two lowercase character, you want the end of string…

Overpass

Regards.