module ‘re’ has no attribute ‘findall’ [duplicate]

If you have a file called re.py, then when you try and import re, Python may look inside that file instead of inside the standard module re. So don’t name a file re.py (or the name of any other module you want to import).

Leave a Comment