Extracting elements from a variable
<p>I have a string '<a href="http://this.is.my.url:007/directory1/directory2/index.html" rel="nofollow">http://this.is.my.url:007/directory1/directory2/index.html</a>' and I need to extract the string as below. Please advice the best way </p>

<p>var one = <a href="http://this.is.my.url:007/directory1/directory2/index" rel="nofollow">http://this.is.my.url:007/directory1/directory2/index</a></p>

<p>Thanks in advance</p>
