Johan,<br><br>You are having success looking for records that match a pattern starting with &#39;LADE&#39; - similar to using &#39;LIKE&#39; - but are getting stuck looking for records matching a pattern that doesn&#39;t start with &#39;LADE&#39;.<br>
<br>Try an approach along the lines of NOT LIKE.<br><br>Steve<br><br><br><br><div class="gmail_quote">On 23 July 2010 15:20, Johan Forsman <span dir="ltr">&lt;<a href="mailto:Johan.Forsman@la.gov">Johan.Forsman@la.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">All:<br>
<br>
Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to render two classes based on content in a PostGIS field.<br>
<br>
For the first CLASS I want all records that start with &quot;LADE&quot;, and using<br>
<br>
NAME &quot;LADE&quot;<br>
EXPRESSION /^LADE.*/<br>
<br>
appears to return the expected records.<br>
<br>
However, for the second CLASS I want all records that DO NOT start with &quot;LADE&quot;, but using<br>
<br>
NAME &quot;Other&quot;<br>
EXPRESSION /^(?!LADE).*/<br>
<br>
does not return any records and the log contains<br>
<br>
msEvalExpression() error: Regular expression error. Invalid regular expression.<br>
<br>
Examples out in the ether all indicate that this &quot;negative lookahead&quot; is supposed to do exactly what I want.<br>
<br>
What am I doing wrong in this instance?<br>
<br>
Thanks!<br>
/Johan.<br>
<br>
----------------------<br>
Johan Forsman<br>
Geologist<br>
Safe Drinking Water Program<br>
Louisiana Department of Health and Hospitals<br>
Office of Public Health<br>
Telephone: 225.342.7309<br>
Telefax: 225.342.7303<br>
<br>
<br>
_______________________________________________<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>
</blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>