Regular expression in Mapfile

Bill Binko bill at BINKO.NET
Fri Jun 3 12:03:21 EDT 2005


On Fri, 3 Jun 2005, 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?

CLASS
  EXPRESSION /4[1-5]00/
END

> 
> 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