<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hi, for regular expression you need to set the parameters FILTERITEM and FILTER. <BR>
>From the documentation (<A HREF="http://mapserver.org/mapfile/expressions.html#regular-expression-comparison)">http://mapserver.org/mapfile/expressions.html#regular-expression-comparison</A>)<BR>
<BR>
LAYER<BR>
&nbsp;&nbsp;&nbsp; NAME &quot;regexp-example&quot;<BR>
&nbsp;&nbsp;&nbsp; FILTERITEM &quot;placename&quot;<BR>
&nbsp;&nbsp;&nbsp; FILTER /hotel/
<PRE>
&nbsp;&nbsp;&nbsp; ...
END
</PRE>
<BR>
I think, the parameter EXPRESSION does not allow regular expression comparison.<BR>
<BR>
Cheers,<BR>
Tommaso <BR>
<BR>
<BR>
On Mon, 2010-11-08 at 15:29 -0800, wildcolour wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Thanks, this looks great.
I will try it tonight, but I think is looking just right.
One more related question.  The column we are using is called 'Tag'
and the seemed to have grouped the 'class' and the 'title' in the one
column.  For example all secondary roads have the tag
&quot;TVOP2&quot;
but roads with the name 'smith st' will look like this
&quot;TVOP2,SMITH ST&quot;
So my  question is in the expression can I do a 'is like' query??  I am
guessing somthing like this
EXPRESSION 'TVOP2%'

Thanks for the great support

Matt  :)

</PRE>
</BLOCKQUOTE>
<BR>
<BR>
</BODY>
</HTML>