I can\'t seem to find a good resource on this.. I am trying to do a simple re.place
I want to replace the part where its (.*?), but can\'t figure out the syntax on how t
>>> import re >>> regex = re.compile(r".*?var:(.*?);") >>> regex.sub(r"\1test", "fksf var:asfkj;") 'asfkjtest'