i have a list :
cpt=0
list=["dermato","bioderma", "gatoderma"]
for l in list:
if re.findall(".*derma.*",l):
cpt=cpt+1
So, instead of putting directly 'derma' as regex , i want :
a= "derma" #initialize
list=["dermato","bioderma", "gatoderma"]
for l in list:
if re.findall(".*a.*",l):
cpt=cpt+1