<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div><font color="#1F497D">Hello,</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D">I may have answered my own question.  The following line works, however it has a mismatched number of brackets so it could be better written.</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D"> [item name=&quot;PHYZIP&quot; nullformat=&quot;No Site Address&quot; pattern=/^[1-9]&nbsp; </font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D">How would I rewrite this line of the template so that it is clean?</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D">Thank You</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D">Mark Volz</font></div>
<div><font color="#1F497D">GIS Specialist</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font color="#1F497D">&nbsp;</font></div>
<div><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>

<b>From:</b> Mark Volz <br>

<b>Sent:</b> Wednesday, February 08, 2012 2:17 PM<br>

<b>To:</b> 'mapserver-users@lists.osgeo.org'<br>

<b>Subject:</b> using pattern or nullformat in templates - Mapserver 5.4</span></font></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Hello,</div>
<div>&nbsp;</div>
<div>I am trying to display an address as part of my identify parcel template.&nbsp; The template works fine for parcels that have a valid address.&nbsp; However, for parcels that do not have an address a &#8220;0&#8221; is displayed (the zip field is a integer).&nbsp; How can I change
the results so that either nothing, or a message such as &#8220;no site address&#8221; is displayed?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>When I try to use pattern:</div>
<div>&nbsp;</div>
<ul style="margin:0;padding-left:36pt;">
<li>[item name=&quot;PHYZIP&quot; pattern=/^[1-9]/]&nbsp;&nbsp; - displays the address if there is one, or &#8220;1/]&#8221; is there is not an address.</li><li>[item name=&quot;PHYZIP&quot; pattern=&#8221;/^[1-9]/&#8221;]&nbsp; - crashes</li></ul>
<div>&nbsp;</div>
<div>Nullformat appears to only work with strings that are null, not integers that are 0.&nbsp; Is there a way to set a nullvalue, for example:</div>
<ul style="margin:0;padding-left:36pt;">
<li>[item name=&#8221;PHYZIP&#8221; nullformat=&#8221;No Physical Address&#8221; nullvalue=&#8221;0&#8221;]</li></ul>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Mark Volz</div>
<div>GIS Specialist</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span></font>
</body>
</html>