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

mkgmap style string match exclusion

0

In the style files for Mkgmap how do i add an exclusion based on a partial string match,

I know if i want to find tags with "Lane" in them it is

name ~ '.*[Ll]ane'

but how do i find a match for names that do not have Lane in them

I have tried

name !~ '.*[Ll]ane'

and

name != ~'.*[Ll]ane'

but they crash the compiler.

asked 19 Dec '15, 11:33

Rossendale%20Gary's gravatar image

Rossendale Gary
1418917
accept rate: 20%

edited 19 Dec '15, 11:45


One Answer:

2

found the answer,

name! (~ '.*[Ll]ane')

answered 19 Dec '15, 11:58

Rossendale%20Gary's gravatar image

Rossendale Gary
1418917
accept rate: 20%