[josm-dev] MapCSS: regexp within eval working or not?

Martin Vonwald imagic.osm at gmail.com
Thu Feb 7 15:24:36 GMT 2013


Hi!

Is it possible to use regular expression within eval? I'm trying to
use the following:
   eval((tag("key")=~/regexp/)?"x":"y");
This doesn't seem to work. If I try instead an exact match like
   eval((tag("key")="z")?"x":"y");
I get a result.

If I use the regular expression as condition selector it works. As
soon as I put it into an eval it doesn't.

Any hints?

regards,
Martin



More information about the josm-dev mailing list