This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

JOSM negated regular expression match, question.

0

JOSM MAPCSS

When I use a code:

[lanes!~/1|2|3|4|5|6|7/]::highway_lanes_layer

to exclude: negated ​Regular expression match, all others should get a "else" icon Then I have a lanes=10 on a way. This 10 should get a "else" icon, This icon is not showing, because 10 has number 1 in 10, the program can not choose. Also lanes=1 icon is not showing. If I have lanes=8 or lanes=9, I get the "else" icon.

What am I doing wrong.

asked 12 Feb '19, 21:25

Allroads's gravatar image

Allroads
222161725
accept rate: 10%


One Answer:

1

answered 04 Apr '19, 20:54

Klumbumbus's gravatar image

Klumbumbus
5431119
accept rate: 8%

Source code available on GitHub .