Extract a string within a string
<p>How can I access <code>WWW.GOOGLE.COM</code> within this <code>String</code>.</p>

<p>I can use the <code>substring</code> method to chop off <code>javascript:linkToExternalSite('</code> but how can I remove the subsequest string.</p>

<p>So that</p>

<pre><code>javascript:linkToExternalSite('WWW.GOOGLE.COM','D','SDFSDX2131D','R','','X','D','DFA','SAFD')
</code></pre>

<p>becomes </p>

<pre><code>WWW.GOOGLE.COM
</code></pre>

<p>This works </p>

<pre><code>string = string.substring(31, string.length());
string = string.substring(0, string.indexOf("'"));
</code></pre>
