[Solved] TypeError: unsupported operand type(s) for &: ‘str’ and ‘int’ on compile re [closed]
You are calling the re.compile() function, whose second argument is an integer representing the different regular expression flags (such as IGNORECASE or VERBOSE). Judging by your variable names, I think you wanted to use the re.findall() function instead: findall_localizacao_tema = re.findall( ‘:.? (*)’ + findall_tema[0] + “https://stackoverflow.com/”, arquivo_salva) You can still use re.compile, but then … Read more