parse text file

william paul williampaul28 at yahoo.com
Tue Oct 30 02:36:57 EDT 2007


Hi:

I am new to this list and new to Python. I have a text file that looks like:
<values> 4 50
<values> 3 900
<values] 7 400
...
<values} 9 70

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

How can I do this?

Thank you

William



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071029/94abf81f/attachment.html>


More information about the Python-list mailing list