You are not logged in.

#1 2021-04-23 05:05:36

Buster452
Member
From: Arizona
Registered: 2020-04-14
Posts: 34

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?

Offline

#2 2021-04-23 19:41:04

maro21
Member
From: Wrocław
Registered: 2018-03-06
Posts: 767

Re: Overpass Turbo query for names with ALL CAPITAL LETTERS

Buster452 wrote:

name~"[A-Z ]+"

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

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

Offline

#3 2021-04-24 06:11:22

Buster452
Member
From: Arizona
Registered: 2020-04-14
Posts: 34

Re: Overpass Turbo query for names with ALL CAPITAL LETTERS

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

maro21 wrote:
Buster452 wrote:

name~"[A-Z ]+"

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

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

Offline

#4 2021-04-25 18:17:55

maro21
Member
From: Wrocław
Registered: 2018-03-06
Posts: 767

Re: Overpass Turbo query for names with ALL CAPITAL LETTERS

Offline

#5 2021-04-25 21:22:34

Buster452
Member
From: Arizona
Registered: 2020-04-14
Posts: 34

Re: Overpass Turbo query for names with ALL CAPITAL LETTERS

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!

Offline

Board footer

Powered by FluxBB