I'm trying to use regex to extract information from some strings
I can find the text using re.search, but how to get the information provided after the search term?
In the format Ref number ABC123456Ref date 01.01.2000 how can I return ABC123456 and 01.01.2000?
import re
reqd_info = "Ref number"
test_text = 'Ref number ABC123456Ref date 01.01.2000'
res = re.search(reqd_info, test_text)