i needed sim_time_pattern = re.compile('sim_time..: ..(\d+)') to capture 9 from the string sim_time\": \"9\", but some code bradley wrote uses sim_time_pattern = re.compile('sim_time.: .(\d+)') and seems to work fine? i don't understand why that should be.
i needed
sim_time_pattern = re.compile('sim_time..: ..(\d+)')
to capture 9 from the stringsim_time\": \"9\"
, but some code bradley wrote usessim_time_pattern = re.compile('sim_time.: .(\d+)')
and seems to work fine? i don't understand why that should be.