Re: parse text file

2007-10-30 Thread Jeff
You can also use strip() if it's the same possibilities every time: line_of_text.lstrip('http://mail.python.org/mailman/listinfo/python-list

Re: parse text file

2007-10-29 Thread Pradeep Jindal
On Tuesday 30 Oct 2007 12:06:57 pm william paul wrote: > Hi: > > I am new to this list and new to Python. I have a text file that looks > like: 4 50 > 3 900 > ... > > I want to be able to remove from each line everything up to ">" or "]" > sign. For example: 4 50 > 3 900 > 7 400 > > ... > 9 70

parse text file

2007-10-29 Thread william paul
Hi: I am new to this list and new to Python. I have a text file that looks like: 4 50 3 900 " or "]" sign. For example: 4 50 3 900 7 400 ... 9 70 How can I do this? Thank you William __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the be