<div dir="ltr">I'm using my own code. The RE is hard coded in my code as a string literal, like:<div><br></div><div>nameGenerator->SetRegularExpression(regex),</div><div><br></div><div>where regex is a const char* pointing to string literal.</div><div><br></div><div>--Fijoy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 8, 2017 at 3:26 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Are you using the example code or your own code? Are you passing the RE on the command line or is it hard coded in the code?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mar 8, 2017 2:57 PM, "Fijoy Vadakkumpadan" <<a href="mailto:tofijoy@gmail.com" target="_blank">tofijoy@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello,<br><br>I'd like to use the RegularExpressionSeriesFileNam<wbr>es class to generate a list of sorted file names in a directory, but having some difficulties. In a toy example that I'm experimenting with, my directory has the following files:<div><br></div><div>3 a a1 ab1 b b1 c c1 cd<br></div><div><br></div><div>Here are 2 regular expressions that I tried and the file names they match:</div><div><br></div><div>(1) expression [^ab1-9] matches c1, c, and cd</div><div><br></div><div>(2) expression [^ab1-9]$ matches c and cd</div><div><br></div><div>According to documentation, (1) makes sense to me, but (2) does not. Specifically, (2) should not have cd as a match, since $ matches end-of-line (and not d). Am I missing something?</div><div><br></div><div>Documentation I'm looking at: <a href="https://itk.org/Doxygen/html/Examples_2IO_2ImageSeriesReadWrite2_8cxx-example.html#_a3" target="_blank">https://itk.org/Doxygen/ht<wbr>ml/Examples_2IO_2ImageSeriesRe<wbr>adWrite2_8cxx-example.html#_a3</a></div><div><br></div><div>Is there additional documentation for the class that will help?</div><div><br></div><div>Thanks,</div><div>--Fijoy</div></div>
<br></div></div>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/community</a><br>
<br></blockquote></div></div>
</blockquote></div><br></div>