I’ve got a webpage which contains document.write javascript commands. These command are structured like:
OpenWindow.document.write("text that I want")
I would like to use a regular expression to return either a list or a match object of all [text that I want]. Could someone please help me?
Sample code so far:
f = open("filename",'r')
allhtml = f.read()
results = re.findall(the_regex,allhtml)
for s in results:
Do Stuff
What about this?