get line of a predefined sentence that in a txt file line?
<p>so i have this code:</p>

<pre><code>for line in open('music.txt'):
    if 'file : "' in line:


        c = line.split('file : "')

        del c[0]

        d="".join(c)

        a=re.sub('"','',d)

        e=re.sub(',','',a)


        urls.append(e)  
</code></pre>

<p>Is there a way to do this but without a file?</p>
