Kent,<br><br>Your multistrip tid-bit worked perfectly. Thanks!<br><br>The
reason why I didn't want the import solution is that I am learning
python because I want to parse text data. This problem was perfect
practice.<br>
<br>Thanks for the links. I'll check them out. You don't happen to have
any parsing tutorials bookmarked somewhere do you? I'm already
exploring <a href="http://gnosis.cx/TPiP/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://gnosis.cx/TPiP/</a>. It's pretty heavy though.
<br><br>Best,<br><span class="sg"><br>Grant</span><br><br><div><span class="gmail_quote">On 6/1/07, <b class="gmail_sendername">Kent Johnson</b> <<a href="mailto:kent37@tds.net">kent37@tds.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Grant Hagstrom wrote:<br>> Thanks for your help Alan.<br>><br>> I found that when I used the code, it did returne a list but it is<br>> riddled with formatting characters.<br>> My question is, is it possible to strip out multiple characters at once?
<br><br>Yes, just pass multiple characters to strip(), e.g.<br>line = line.strip('\r\n\t \'",')<br><br>I'm curious why you don't like the import solution. exec and execfile()<br>could also work although all three require that the file contain trusted
<br>data.<br><br>Here are a couple of recipes that do almost what you want (you would<br>still have to strip out the "jobs = " part:<br><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469
</a><br><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/281056">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/281056</a><br><br>Kent<br></blockquote></div><br>