After he said that...I realized where I was being dumb...<br><br><div class="gmail_quote">On Wed, Apr 15, 2009 at 10:29 AM, bob gailer <span dir="ltr">&lt;<a href="mailto:bgailer@gmail.com">bgailer@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Spencer Parker wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a python script that takes a text file as an argument.  It then loops<br>
through the text file pulling out specific lines of text that I want.  I<br>
have a regular expression that evaluates the text to see if it matches a<br>
<br>
specific phrase.  Right now I have it writing to another text file that<br>
output.  The problem I am having is that it finds the phrase prints it, but<br>
then it continuously prints the statement.  There is only 1 entries in the<br>
<br>
file for the result it finds, but it prints it multiple times...several<br>
hundred before it moves onto the next one.  But it appends the first one to<br>
the next entry...and does this till it finds everything.<br>
<br>
<a href="http://dpaste.com/33982/" target="_blank">http://dpaste.com/33982/</a><br>
<br>
<br>
Any Help?<br>
  <br>
</blockquote>
<br></div></div>
dedent the 2nd for loop.<br><font color="#888888">
<br>
-- <br>
Bob Gailer<br>
Chapel Hill NC<br>
919-636-4239<br>
</font></blockquote></div><br>