I’m having great difficulty getting a regex expression to work. I’ve tried several ways and not getting the results I want.
I want a filter that will give me all ways with a name beginning with a number. It would be great if it returned any highways with names beginning with a number, but even just ways would work.
So far I’m enabled expert mode and tried
type:way ^name$~^/D
type:way ^name$~^/b[0-9
type:way name~^/b[0-9]
Nothing is giving me the results I want. I’ll be the first to admit that my regex skills really really suck.
Helped me too, tks
and for the Overpass Turbo Query Wizard http://overpass-turbo.eu/
type:way and highway=* and name~“^[0-9]+."
or for checking nodes, ways and relations…
highway= and name~”^[0-9]+.*"
Hi. The documentation is not clear enough. Seems that the support of java regex pattern is not 100% compatible.
Each key=value is a line? (see my last example)
How do you specify a that the element must match some regex for the key and some other regex for the value? (seems to be write them separated by “:”)
E.g. to search for housenumbers with two digits, the \d{2} does not work, \d\d also doesn’t work, but i have success specifiyng digits with [0-9].