On 02/07/2013 02:46 PM, Martin Vonwald wrote:
Hi!

I'm in need of some magic for a JOSM style. Any hints regarding the following?
* I have a tag "key=a:b". I need to retrieve b.
* I have a tag "key=a,b,c,d". The value is comma-separated and I need
to retrieve the x-th value.

Any ideas?

This isn't possible so far. However, it sounds quite useful, so I have added a few new functions that should do the job:

 * split
 * get
 * regexp_test and regexp_match

See documentation:
<http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Evalexpressions>

Paul

_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to