I'm trying pass year variable to re.findall, but it doesn't work(no errors). Can anyone specify where I'm going wrong?
year=2013
links = re.findall(r"('+year+'-.*\/t.*.html)", line)
I'm trying pass year variable to re.findall, but it doesn't work(no errors). Can anyone specify where I'm going wrong?
year=2013
links = re.findall(r"('+year+'-.*\/t.*.html)", line)
year
should be out of the quotes, since it is a variable: