Re: parse text file
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
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