newbe question about removing items from one file to another file
Eric_Dexter at msn.com
Eric_Dexter at msn.com
Sun Aug 27 20:29:55 EDT 2006
PetDragon wrote:
> Sounds like you need to use html parser, check it out in the
> documentation....
>
>
>
> <Eric_Dexter at msn.com> wrote in message
> news:1156714534.318183.326220 at i3g2000cwc.googlegroups.com...
> > def simplecsdtoorc(filename):
> > file = open(filename,"r")
> > alllines = file.read_until("</CsInstruments>")
> > pattern1 = re.compile("</")
> > orcfilename = filename[-3:] + "orc"
> > for line in alllines:
> > if not pattern1
> > print >>orcfilename, line
> >
> > I am pretty sure my code isn't close to what I want. I need to be able
> > to skip html like commands from <defined> to <undefined> and to key on
> > another word in adition to </CsInstruments> to end the routine
> >
> > I was also looking at se 2.2 beta but didn't see any easy way to use it
> > for this or for that matter search and replace where I could just add
> > it as a menu item and not worry about it.
> >
> > thanks for any help in advance
> >
I will look into that a little bit since that is so html like... maybe
some of the examples can lead me in the right direction on alot of it..
http://www.dexrow.com
More information about the Python-list
mailing list