How to search exact string using python file handling
<p>I have a file that contains</p>

<pre><code>"1111 1111 1111 // google 
1111 1111 1111 // google talk browser 
1111 1111 1111 // google talks 
1111 1111 1111 // google talk" 
</code></pre>

<p>I want to print only "// google talk" related line (only 4th line)</p>

<p>tried like this this not working...</p>

<pre><code>with open('file.txt', 'r') as handle:
    for index, line in enumerate(handle, 1):
        if line.strip() == 'talk':
            print 'Match found on line', index
</code></pre>
