Regular Expression with letter
<p>I need to match things that format something along the lines of 
657432-76,   54678-01,   54364<strong>A</strong>-12</p>

<p>I got <code>(r'^\d{6}-\d{2}$')</code>
and   <code>(r'^\d{5}-\d{2}$')</code>
but how do you get the letter?</p>

<p>thanks!!</p>

<p>For the letter use <code>[a-zA-Z]</code>, and if it's only upper case then <code>[A-Z]</code> is sufficient.</p>

python regex format expression