hi
i tried to search 2 patterns
pat1 = re.compile("bla h")
pat2 = re.compile("bla h2")
if i do
if re.findall(pat1 ,something) and re.findall(pat2 ,something):
do something
if does not work
but when i do a nest if,
if re.findall(pat1 ,something) :
if re.findall(pat2 ,something):
do something
it works..
please advise on why the first code doesnt work.
thanks
i tried to search 2 patterns
pat1 = re.compile("bla h")
pat2 = re.compile("bla h2")
if i do
if re.findall(pat1 ,something) and re.findall(pat2 ,something):
do something
if does not work
but when i do a nest if,
if re.findall(pat1 ,something) :
if re.findall(pat2 ,something):
do something
it works..
please advise on why the first code doesnt work.
thanks
Comment