working great !<br>thanks a lot <br><br>Marc-André Trottier<br><br><div class="gmail_quote">2011/10/17 Travis Kirstine <span dir="ltr"><<a href="mailto:traviskirstine@gmail.com">traviskirstine@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Marc-André<br>
<br>
I have never used regex in MS but this should work:<br>
<br>
EXPRESSION ('[res_co_reg]' ~* '^.*RES_CO_REG.*$')<br>
<br>
I believe that regex are costly in term of performance<br>
<br>
Regards<br>
<br>
<br>
<br>
On 17 October 2011 09:26, Marc-André Trottier<br>
<div><div></div><div class="h5"><<a href="mailto:trottier.marcandre@gmail.com">trottier.marcandre@gmail.com</a>> wrote:<br>
> hi!<br>
> i'm using Mapserver 6.0 and got this error :<br>
><br>
> msValidateParameter(): Regular expression error. Parameter pattern<br>
> validation failed.<br>
><br>
> with this CLASS :<br>
> CLASS<br>
> NAME "Région administrative"<br>
> EXPRESSION ('[res_co_reg]' eq '%RES_CO_REG%')<br>
> GROUP "adn"<br>
> LABEL<br>
> COLOR 139 35 35<br>
> ANTIALIAS FALSE<br>
> TYPE TRUETYPE<br>
> FONT "verait"<br>
> SIZE 12<br>
> POSITION AUTO<br>
> FORCE FALSE<br>
> MINDISTANCE 10000<br>
> PARTIALS FALSE<br>
> BUFFER 3<br>
> END<br>
> STYLE<br>
> OUTLINECOLOR 139 35 35<br>
> WIDTH 5<br>
> END<br>
> END<br>
><br>
> but everything works well<br>
><br>
> i also tried and the error always appear :<br>
><br>
> EXPRESSION ("[res_co_reg]" eq "%RES_CO_REG%")<br>
> EXPRESSION ('[res_co_reg]' = '%RES_CO_REG%')<br>
> EXPRESSION ([res_co_reg] eq %RES_CO_REG%)<br>
> EXPRESSION ("[res_co_reg]" = "%RES_CO_REG%")<br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
><br>
</blockquote></div><br>