parse text file

Jeff jeffober at gmail.com
Tue Oct 30 08:56:08 EDT 2007


You can also use strip() if it's the same possibilities every time:

line_of_text.lstrip('<values')

That's a lot faster than regex.




More information about the Python-list mailing list