Why does the following Python statement return None?
>>> re.match('\b\w+\b', 'foo')
>>>
As far as I understand, that should match the word foo. The first \b should match the beginning of the word foo, \w+ should match the word foo, and the final \b should match the end of the word foo. What is wrong in my understanding?