title: Regular expressing warning me no attribute called group
body: <p>I have a string called "sunday" that equals "1200-1700" and I am trying to retrieve the two numbers seperately. To do this I tried using the <code>re</code> module. <code>match = re.search(r'\W\d\d\d\d', sunday)</code> gives me <code>&lt;re.Match object; span=(4, 9), match='-1700'&gt;&lt;re.Match object; span=(4, 9), match='-1700'&gt;</code>. When I try match.group() I get an error saying <code>'NoneType' object has no attribute 'group'</code>. I just want to assign the '-1700' to a variable?</p>