4 ms·
If you are comparing the match to the wanted string, it defeats the purpose of the capture group. if "tarzan" == re.search(r'"tarzan"|tarzan', myvar)[0]:
by PennRobotics 5y ago
If you are comparing the match to the wanted string, it defeats the purpose of the capture group.
if "tarzan" == re.search(r'"tarzan"|tarzan', myvar)[0]:
...
Am I missing something?