title: Parsing link from javascript function
body: <p>I'm trying to parse a direct link out of a javascript function within a page. I'm able to parse the html info I need, but am stumped on the javascript part. Is this something that is achievable with php and possibly regex?</p>
  
  <pre><code>function videoPoster() {
      document.getElementById("html5_vid").innerHTML = 
          "&lt;video x-webkit-airplay='allow' id='html5_video' style='margin-top:" 
          + style_padding 
          + "px;' width='400' preload='auto' height='325' controls onerror='cantPlayVideo()' " 
          + "&lt;source src='http://video-website.com/videos/videoname.mp4' type='video/mp4'&gt;";
  }
  </code></pre>
  
  <p>What I need to pull out is the link "http://video-website.com/videos/videoname.mp4". Any help or pointers would be greatly appreciated!</p>