extracting regular expression from string
<p>Is, there a better way to extract the strings :</p>

<pre><code>  'Found 1 items\ndrwxr-xr-x   - hadoop supergroup          0 2013-02-16 13:21 /user/hadoop/wiki\n'
</code></pre>

<p>All the strings will be like:</p>

<pre><code>  'Found **n** items\n**permissions**   - **username** **group**          **notsurewhatthisis** **date** **time** **folders(or file)**\n'
</code></pre>

<p>Right now.. i am splitting it as:</p>

<pre><code>line = line.split()
num_items = int(line[1])
permissions = line[3]
</code></pre>

<p>etc..</p>

<p>So basically this is a no brainer solution..</p>

<p>Trying to see if there is a "python" way to do this.</p>
