Unexpected regex behavior
re.search(
r"(\d{1,4} [^\d:]{1,2} \d{1,4} [^\d:]{1,2} \d{1,4} | \w{3,10}.{,6}\d{4})",
'abc2024-07-08'
)
Why does this regex extract the second pattern, "abc2024", not "2024-07-08"?