Get specific text from webpage
<p>I have this Page <a href="http://inviatapenet.gethost.ro/sop/test1.php" rel="nofollow">Test1</a> on this other page <a href="http://inviatapenet.gethost.ro/sop/test.php" rel="nofollow">test</a></p>

<p>I have this PHP code running to get some code from test1.</p>

<pre><code>&lt;?php
libxml_use_internal_errors(true);
$doc = new DOMDocument();
$doc-&gt;loadHTMLFile("http://inviatapenet.gethost.ro/sop/test1.php");

$xpath = new DOMXpath($doc);

$elements = $xpath-&gt;query("//*[@type='button']/@onclick");

if (!is_null($elements)) {
    foreach ($elements as $element) {
        $nodes = $element-&gt;childNodes;
        foreach ($nodes as $node) {
            echo $node-&gt;nodeValue. "\n";
        }
    }
}
?&gt;
</code></pre>

<p>The result is this</p>

<pre><code>OnPlay('sop://broker.sopcast.com:3912/120704 cod ', ' eu - Nr.1 in tv ! ')
OnPlay('sop://broker.sopcast.com:3912/140601 cod ', ' eu - Nr.1 in tv ! ')     
OnPlay('sop://broker.sopcast.com:3912/124589 cod ', ' eu - Nr.1 tv') 
OnPlay('sop://broker.sopcast.com:3912/589994 cod ', ' eu - tv ') 
OnPlay('sop://broker.sopcast.com:3912/ cod ', ' eu - tv ')
</code></pre>

<p>But I need only this data from all of that: `sop://broker.sopcast.com:3912/140601 </p>

<p>All of them.</p>

<p>How to get rid of extra text or how to get gest the(sop://broker.sopcast.com:3912/140601,sop://broker.sopcast.com:3912/120704)</p>
