title: Python - Regex to Get directory name from HDFS
body: <p>Im trying to extract a folder name from the result of a subprocess command. The result is 
  Found 1 items</p>
  
  <pre><code>drwxr-xr-x   - user user          0 2017-05-04 17:19 /user/oozie/share/lib/lib_20170406204755
  </code></pre>
  
  <p>I want to extract <code>lib_20170406204755</code> . I was able to do it using </p>
  
  <pre><code>process = subprocess.check_output(['hdfs','dfs','-ls','/user/oozie/share/lib'])
  print process.split(' ')[-1].rstrip().split('/')[-1]
  </code></pre>
  
  <p>The folder is always <code>lib_timestamp</code></p>
  
  <p>How can do this using regex?</p>