Regular expression in Mapfile
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Fri Jun 3 09:00:45 PDT 2005
EXPRESSION /^4[12345]00$/
is probably what you want.
Christopher R. Thorne wrote:
> Hello,
> I am working on classifying land us polygon layers and I wish to us
> regular expressions. I have searched the archive and it came up short
> for what I am looking for. The mapfile reference also was a little
> skimpy. ;)
>
> I would like to define an expression the finds values (4100, 4200, 4300
> 4400 4500) and place these features in a single class. What would be the
> best (least expensive) expression?
>
> For example,
>
> CLASS
> EXPRESSION /[4000-4501]/
> END
>
> (I am not even sure if I have defined this correctly.)
>
> Also, does anyone have a good reference to regex?
>
> Chris
>
>
More information about the MapServer-users
mailing list