title: Extract URL from SCRIPT portion of HTML Code with RegEx
body: <p>I have one URL which is inside a <code>&lt;script&gt;</code> tag and I need to extract that URL: </p>
  
  <p>Using <code>ReMatchNoCase()</code>, I can find the script and place it in an array. </p>
  
  <pre><code>&lt;SCRIPT LANGUAGE="JavaScript" &gt; //alert("a chance stuff"); document.location.href="https://mypage.cfm"; &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>To extract the URL, I am using the following code</p>
  
  <pre><code>&lt;cfset ulink = reMatchNoCase("&lt;SCRIPT.*?&gt;.*?&lt;/SCRIPT&gt;", data)&gt;
  &lt;cfset link = Replacenocase(Replace(listLast(ulink[1],'='),'"','','ALL'),';&lt;/script&gt;','','all')&gt;
  </code></pre>
  
  <p>This works, but is there a cleaner way to do this?</p>