[Tutor] RE problems
James Alexander McCarney
james.mccarney at cgi.com
Fri Aug 6 23:23:07 CEST 2004
I am having problems returning everything I want from a regular expression.
I am merely getting the first string in the html text file, which stands to
reason as per the code.
Could someone give me the magic to put all the strings tagged < > thus.
Thanks for any tips you can provide. As for the document,
I am reading amk's RE how-to; and I know it's all in there; it's just that
I've cudgeled my brains a lot today. ;-(
from win32com.client import Dispatch
app = Dispatch('Word.Application')
app.Visible = 1
doc = app.Documents.Add()
f = open("C:\myfile.html")
allines = f.read()
s1 = doc.Sentences(1)
s1.Text = m.group()
app = None
More information about the Tutor