python regular expressions using the re module can you write a regex which looks inside the result of another regex?
<p>I am wanting to write a regular expression which pulls out the following from between but not including <code>&lt;p&gt;</code> and <code>&lt;/p&gt;</code> tags:</p>

<p>begins with the word "Cash" has some stuff I don't want then a number $336,008.</p>

<p>From:</p>

<blockquote>
  <p><code>&lt;p&gt;Cash nbs $13,000&lt;/p&gt;</code></p>
</blockquote>

<p><strong>I want "Cash" and if available (maybe 0 or nothing) the number.</strong></p>

<p>What I have so far gets me everything inside of the <code>&lt;p&gt;</code> tags including the tags themselves.</p>

<pre><code>\&lt;p\&gt;(|.*Cash.*|.*Total.*\$\d+.*)\&lt;\/p\&gt;
</code></pre>

<p>If you using re.findall, just use () with you want to catch.</p>

<pre><code>&gt;&gt;&gt; test = '&lt;p&gt;Cash nbs $13,000&lt;/p&gt;'
&gt;&gt;&gt; re.findall(r'&lt;p&gt;(Cash).+\${1}\d*|\,&lt;/p&gt;', test)
['Cash']
</code></pre>

python regex