[mapserver-users] problem with Regular Expression
Marc-André Trottier
trottier.marcandre at gmail.com
Mon Oct 17 08:32:13 PDT 2011
working great !
thanks a lot
Marc-André Trottier
2011/10/17 Travis Kirstine <traviskirstine at gmail.com>
> Marc-André
>
> I have never used regex in MS but this should work:
>
> EXPRESSION ('[res_co_reg]' ~* '^.*RES_CO_REG.*$')
>
> I believe that regex are costly in term of performance
>
> Regards
>
>
>
> On 17 October 2011 09:26, Marc-André Trottier
> <trottier.marcandre at gmail.com> wrote:
> > hi!
> > i'm using Mapserver 6.0 and got this error :
> >
> > msValidateParameter(): Regular expression error. Parameter pattern
> > validation failed.
> >
> > with this CLASS :
> > CLASS
> > NAME "Région administrative"
> > EXPRESSION ('[res_co_reg]' eq '%RES_CO_REG%')
> > GROUP "adn"
> > LABEL
> > COLOR 139 35 35
> > ANTIALIAS FALSE
> > TYPE TRUETYPE
> > FONT "verait"
> > SIZE 12
> > POSITION AUTO
> > FORCE FALSE
> > MINDISTANCE 10000
> > PARTIALS FALSE
> > BUFFER 3
> > END
> > STYLE
> > OUTLINECOLOR 139 35 35
> > WIDTH 5
> > END
> > END
> >
> > but everything works well
> >
> > i also tried and the error always appear :
> >
> > EXPRESSION ("[res_co_reg]" eq "%RES_CO_REG%")
> > EXPRESSION ('[res_co_reg]' = '%RES_CO_REG%')
> > EXPRESSION ([res_co_reg] eq %RES_CO_REG%)
> > EXPRESSION ("[res_co_reg]" = "%RES_CO_REG%")
> >
> >
> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111017/f9d4f56f/attachment.htm>
More information about the MapServer-users
mailing list