<html><body><div style="font-family: garamond, new york, times, serif; font-size: 12pt; color: #000000"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div style="font-family: garamond, new york, times, serif; font-size: 12pt; color: #000000" data-mce-style="font-family: garamond, new york, times, serif; font-size: 12pt; color: #000000;"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div style="font-family: garamond, new york, times, serif; font-size: 12pt; color: #000000" data-mce-style="font-family: garamond, new york, times, serif; font-size: 12pt; color: #000000;"><div>Hello,</div><div><br></div><div>I have a problem with str_match function and the NCL last version .<br></div><div>the result gives "missing" in my string<br></div><div><br></div><div>Here my machine: Linux x86_64 GNU/Linux</div><div><br></div><div><strong>ncl</strong><br>&nbsp;Copyright (C) 1995-2014 - All Rights Reserved<br>&nbsp;University Corporation for Atmospheric Research<br>&nbsp;NCAR Command Language <strong>Version 6.2.1</strong><br>&nbsp;The use of this software is governed by a License Agreement.<br>&nbsp;See http://www.ncl.ucar.edu/ for more details.<br><strong>ncl 0&gt; varname="rntcre"</strong><br><strong>ncl 1&gt; a=str_match(varname,"r[lsn][ats]cre")</strong><br><strong>ncl 2&gt; print (a)</strong><br><div><br></div>Variable: a<br>Type: string<br>Total Size: 8 bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 values<br>Number of Dimensions: 1<br>Dimensions and sizes:&nbsp;&nbsp; &nbsp;[1]<br>Coordinates: <br>Number Of Attributes: 1<br>&nbsp; _FillValue :&nbsp;&nbsp; &nbsp;missing<br>(0)&nbsp;&nbsp; &nbsp;<span style="color: rgb(255, 0, 0);" data-mce-style="color: #ff0000;">missing</span><br><div><br></div><div>this function works with NCL previous version:<br></div><div><br></div><div><strong>ncl</strong><br>&nbsp;Copyright (C) 1995-2012 - All Rights Reserved<br>&nbsp;University Corporation for Atmospheric Research<br>&nbsp;NCAR Command Language <strong>Version 6.1.0</strong><br>&nbsp;The use of this software is governed by a License Agreement.<br>&nbsp;See http://www.ncl.ucar.edu/ for more details.<br><strong>ncl 0&gt; varname="rntcre"</strong><br><strong>ncl 1&gt; a=str_match(varname,"r[lsn][ats]cre")</strong><br><strong>ncl 2&gt; print (a)</strong><br><div><br></div>Variable: a<br>Type: string<br>Total Size: 8 bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 values<br>Number of Dimensions: 1<br>Dimensions and sizes:&nbsp;&nbsp; &nbsp;[1]<br>Coordinates: <br>(0)&nbsp;&nbsp; &nbsp;<span style="color: rgb(255, 0, 0);" data-mce-style="color: #ff0000;">rntcre</span><br><div><br></div></div></div><div>Could you help me, please?<br></div><div>Thank you very much<br></div><div><br></div><div><span></span>----- Météo-France -----<br>TYTECA SOPHIE<br>CNRM/GMGEC/VDR <br>sophie.tyteca@meteo.fr <br>Fixe : +33 561079379<span></span><br></div></div></div><div><br></div></div></div><div><br></div></div></body></html>