[mapserver-commits] r12611 - branches/branch-6-0/docs/en/mapfile trunk/docs/en/mapfile

svn at osgeo.org svn at osgeo.org
Fri Sep 30 16:44:12 EDT 2011


Author: havatv
Date: 2011-09-30 13:44:12 -0700 (Fri, 30 Sep 2011)
New Revision: 12611

Modified:
   branches/branch-6-0/docs/en/mapfile/expressions.txt
   trunk/docs/en/mapfile/expressions.txt
Log:
Added a new regexp example to the expressions document.

Modified: branches/branch-6-0/docs/en/mapfile/expressions.txt
===================================================================
--- branches/branch-6-0/docs/en/mapfile/expressions.txt	2011-09-30 16:18:59 UTC (rev 12610)
+++ branches/branch-6-0/docs/en/mapfile/expressions.txt	2011-09-30 20:44:12 UTC (rev 12611)
@@ -292,6 +292,18 @@
 
     EXPRESSION ('[name]' ~* 'by$')
 
+Example: Match all the features where the *rdname* attribute starts
+with "Main".
+
+::
+
+    LAYER
+    ...
+    CLASSITEM 'rdname'
+    CLASS
+
+      EXPRESSION /^Main.*$/
+
 .. note:: 
     
     If you experience frequently segmentation faults when working with

Modified: trunk/docs/en/mapfile/expressions.txt
===================================================================
--- trunk/docs/en/mapfile/expressions.txt	2011-09-30 16:18:59 UTC (rev 12610)
+++ trunk/docs/en/mapfile/expressions.txt	2011-09-30 20:44:12 UTC (rev 12611)
@@ -292,6 +292,18 @@
 
     EXPRESSION ('[name]' ~* 'by$')
 
+Example: Match all the features where the *rdname* attribute starts
+with "Main".
+
+::
+
+    LAYER
+    ...
+    CLASSITEM 'rdname'
+    CLASS
+
+      EXPRESSION /^Main.*$/
+
 .. note:: 
     
     If you experience frequently segmentation faults when working with



More information about the mapserver-commits mailing list