Overpass Turbo query for names with ALL CAPITAL LETTERS

One of these days I’ll have that “aha” moment with regex…

I would expect this

way[name~"[A-Z ]+"]({{bbox}});

to give me any way that has a name with ALL CAPITAL LETTERS. It seems to be returning ways with any capital letters though.

Can someone help me out with a better query?

It actually means “name contains a capital letter or a space”.
You should change it to

name~"^[A-Z ]+$"

Thank you. That worked great. Made some quick work out of fixing some bad names real quick.

You have the same on Osmose: http://osmose.openstreetmap.fr/en/map/#item=5010&class=803&zoom=7&lat=55.674&lon=13.282&level=1%2C2%2C3

Thanks. I used it to do a download in JOSM. I could set slippy map to a large area and just download the exceptions and fix them. Thanks!