So, I'm trying to view the file for a keyword that is represented by a variable what2look4. Whenever I run this program, it saves the returned data. The code is as follows:
regex2=re.compile(".*(what2look4).*")
I believe that the problem is that the file is looking what2look4as a string in itself, and not what this variable represents. Please correct me if I am wrong, thanks for the help.
source
share