[mapserver-users] Regular Expressions Question

Don Silvia don at dlsilvia.ne.mediaone.net
Thu Jun 14 22:33:41 EDT 2001


Wish I could say I came up with this myself, but it's from the Perl Cookbook:

/^(?:(?!a).)*$/


Don Silvia

At 10:27 AM Thursday 6/14/2001, Daniel Morissette wrote:
>"Andries J. Algera" wrote:
> >
> > I would try to do something like this: /[^a]/
> >
>
>Thanks for all the replies... I tried using
>
>   EXPRESSION  /[^a]/
>
>but it doesn't work... it still matches fields that contain an 'a'.  The
>'man regex' on my test system (RH6.2) does mention the [^...]
>'non-matching list' operator so it should support it but it doesn't
>work.
>
>Has anyone ever been able to use the [^...] operator with MapServer
>REGEX?  Perhaps it's just the way the above expression is built that's
>not correct?
>
>P.S. I also tried /[^a]*/ and /[^a]+/ just in case but it made no
>difference.
>--
>------------------------------------------------------------
>  Daniel Morissette               morissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
>------------------------------------------------------------
>   Don't put for tomorrow what you can do today, because if
>       you enjoy it today you can do it again tomorrow.




More information about the mapserver-users mailing list