title: regular expression to get folder name from URL
body: <p>Is it possible to get folder name from a URL? </p>
  
  <p>For example,</p>
  
  <pre><code>https://inside.nov.com/wh/pc/testSourceLib/Folder Z/SubFolder Z1/Copy files from one Document Library to another using Nintex Workflow _ My Learnings.pdf
  </code></pre>
  
  <p>where </p>
  
  <ul>
  <li><code>https://inside.nov.com/wh/pc/</code> is the Web URL</li>
  <li><code>testSourceLib</code> is the library name</li>
  <li><code>Folder Z/Subfolder z1</code> is the folder name</li>
  </ul>
  
  <p>I need to extract <code>/Folder Z/Subfolder z1</code> from the above URL.</p>
  
  <p>I tried <code>([^\/]*)$</code> and it gives me the file name <code>Copy files from one Document Library to another using Nintex Workflow _ My Learnings.pdf</code>.</p>