NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


found the answer,

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

permanent link

answered 19 Dec '15, 11:58

Rossendale%20Gary's gravatar image

Rossendale Gary
1418917
accept rate: 20%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×30
×2
×2
×1

question asked: 19 Dec '15, 11:33

question was seen: 2,083 times

last updated: 19 Dec '15, 11:58

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum