<p>I want to grab the value of a hidden input field in HTML.</p>

<pre><code>&lt;input type="hidden" name="fooId" value="12-3456789-1111111111" /&gt;
</code></pre>

<p>I want to write a regular expression in Python that will return the value of <code>fooId</code>, given that I know the line in the HTML follows the format</p>

<pre><code>&lt;input type="hidden" name="fooId" value="**[id is here]**" /&gt;
</code></pre>

<p>Can someone provide an example in Python to parse the HTML for the value?</p>

```
```
/<input type="hidden" name="fooId" value="([\d-]+)" \/>/
```
```