# variable that stores the value: field_value # import the Python regular expression library, re import re # call the regular expression library's method, findall, to extract the date value only field_value = re.findall(r'\d{2}-\d{2}-\d{4}', field_value)[0]