
8 Dec
2011
8 Dec
'11
9:51 a.m.
On Wed, Dec 07, WanMil wrote:
Attached patch does the trick easier:
mkgmap:country=DEU& mkgmap:city!=* { set mkgmap:city='${mkgmap:admin_level8|remove:Gemeinde !Stadt }' }
The filter "remove" removes all occurrences of the defined regexp. Regexps are separated by "!".
Please have a try. Maybe someone has a better idea for the separator character?
Big thanks! Works fine and makes the rules better maintain- and readable. The standard seperators are "|", "/", ";". I like everybody of them more than "!", which is really uncommon. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)