Let's say we have a string:
John Smith has a birthday of 2/29/90
I'm using python re.search
, which should just be normal regex. I DO NOT want the middle part. I only want the name and the date returned. Why does mine not work?
(?=(\(\w+\)))(?=([A-z]{3} (\d{1,2}) \d{2}:\d{2}:\d{2}))(\1)(\2)
EDIT: see verified answer and comment