I have this simple code:
import re, sys
f = open('findallEX.txt', 'r')
lines = f.readlines()
match = re.findall('[A-Z]+', lines)
print match
I don’t know why I am getting the error:
‘expected string or buffer’
Can anyone help?
I have this simple code:
import re, sys
f = open('findallEX.txt', 'r')
lines = f.readlines()
match = re.findall('[A-Z]+', lines)
print match
I don’t know why I am getting the error:
‘expected string or buffer’
Can anyone help?