J
Jens Thiede
What is the easiest way to generate a list that contains all the
remnants of re.findall (the inverse of the following).
re.split doesn't seem to work quite well, but then, I'm probably using
it wrong.
Any suggestions?
Jens.
remnants of re.findall (the inverse of the following).
>>> file = open("index.html", "r")
>>> data = file.read()
>>> patern = re.compile("<title>(.*)</title>", re.S | re.I)
>>> patern.findall(data) ['Damn Small Expansions!']
>>> file.close()
re.split doesn't seem to work quite well, but then, I'm probably using
it wrong.
Any suggestions?
Jens.