Need help with re for matching and getting the value python
<p>Need help regarding re.</p>

<pre><code>file =  'file No.WR79050107006 from files'
</code></pre>

<p>So what I am trying to do is validate if file string contains WR + 11 digit.</p>

<pre><code>result = re.match('^(\S| )*(?P&lt;sr&gt;(\d){11})(\S| )*', file)
</code></pre>

<p>Its validate only 11 digit but not WR before it.
How can I do that?</p>

<p>Using re after matching how can I get the match value ( WR79050107006)</p>

<p>I can do string find</p>

<pre><code>index = file.find('file No.')
</code></pre>

<p>and then get the value of next 13 char.</p>

<p>thanks</p>
