title: Determine '\' position in string
body: <p>I'm trying to get the directory name from a path string using nant. However, whenever I use the following:</p>
  
  <pre><code>&lt;property name="lastBackSlash" value="${string::last-index-of('${foldername}', '\')}" /&gt;
  </code></pre>
  
  <p>... this returns -1. I am sure the foldername contains a path with backslashes.</p>
  
  <p>Am I doing something wrong?</p>