Why does the second regex ('\w*(\d*)\w{0,3}') not match in python?
>>> re.search(r'\w{0,3}(\d*)\w{0,3}', 'abc123456def').groups()
('123456',)
>>> re.search(r'\w*(\d*)\w{0,3}', 'abc123456def').groups()
('',)
>>> re.search(r'\w{0,3}(\d*)\w*', 'abc123456def').groups()
('123456',)
The string begins with 0 or more word characters, so it seems like it should match like the first and third regex patterns.