Ya, for some reason your non-greedy "?" doesn't seem to be taking.
This works:

re.sub('(.*)(00.*?01) target_mark', r'\2', your_string)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to