Re: Replace unknow string varible in file.

2009-02-11 Thread namire
Thanks to Vlastimil Brom for his example and r0g for his helpful attitude and hyperlinks I was able to made program do what was needed. Terry the comments in the html are not important I was just saying that if I could cover the undesired strings in html comment tags then they would not should up

Re: Replace unknow string varible in file.

2009-02-10 Thread Terry Reedy
namire wrote: Hey .python first time poster here. I'm pretty good with python so far, but I keep needed a function in my program but not knowing how to build it. =( Here's the problem: Imagine a html file full of 100's of these strings all mooshed together onto many lines; ITEM Where the word 'M

Re: Replace unknow string varible in file.

2009-02-10 Thread r0g
namire wrote: > Just as a comparison in the Windows OS this seems easy to do when > managing files, say for the file a-blah-b-blah.tmp where blah is an > unknown you can use: del a-*-b-*.tmp to get rid of that file. But for > python and a string in text file I don't have a clue. @_@ could > someone

Re: Replace unknow string varible in file.

2009-02-10 Thread Vlastimil Brom
2009/2/10 namire : > Hey .python first time poster here. I'm pretty good with python so > far, but I keep needed a function in my program but not knowing how to > build it. =( Here's the problem: > > Imagine a html file full of 100's of these strings all mooshed > together onto many lines; > ITEM >

Replace unknow string varible in file.

2009-02-10 Thread namire
Hey .python first time poster here. I'm pretty good with python so far, but I keep needed a function in my program but not knowing how to build it. =( Here's the problem: Imagine a html file full of 100's of these strings all mooshed together onto many lines; ITEM Where the word 'MARKER' is a cons