Changes between Version 26 and Version 27 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2013-10-25T10:26:44+02:00 (12 years ago)
Author:
grinapo
Comment:

regexp_match was not quite explained, it is now. :-)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v26 v27  
    858858}}}
    859859
    860 
     860* regexp matching example: change "nameXXXsubname" to "name::subname"
     861{{{
     862*[name=~/.+XXX.+/]
     863{
     864    _match: regexp_match("(.+?)XXX(.+)", tag("name"));
     865    text: concat(get(prop("_match",1), "::", get(prop("_match"),2));
     866}
     867}}}
    861868
    862869