Help with regular expression

Berend Veldkamp berend.veldkamp at ARIS.NL
Fri Sep 10 04:37:15 PDT 2004


I thought of that, but it would not catch "012" or "990". I want only
those records that don't start with exactly 3 zeroes.

Berend


Daniele Margotti wrote:

> Try:
> "expression /^[1-9]{3}/"
>
> If the attribute can start with letters (other than numbers):
> "expression /^[A-Z,a-z,1-9]{3}/"
>
> And if you want, for example, an (numerical) attribute *not* starting
> with "123":
> "expression /^[0,2-9][0-1,3-9][0-2,4-9]/"
>
> Tell me if it works.
>
>       Daniele
>
>

--
____________________________

Berend Veldkamp - ARIS
http://www.aris.nl/
____________________________



More information about the MapServer-users mailing list