Kent,<br><br>Your multistrip tid-bit worked perfectly. Thanks!<br><br>The
reason why I didn&#39;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&#39;ll check them out. You don&#39;t happen to have
any parsing tutorials bookmarked somewhere do you? I&#39;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&#39;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> &lt;<a href="mailto:kent37@tds.net">kent37@tds.net</a>&gt; 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>&gt; Thanks for your help Alan.<br>&gt;<br>&gt; I found that when I used the code, it did returne a list but it is<br>&gt; riddled with formatting characters.<br>&gt; 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(&#39;\r\n\t \&#39;&quot;,&#39;)<br><br>I&#39;m curious why you don&#39;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 &quot;jobs = &quot; 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>