title: PHP Regex to determine relative or absolute path
body: <p>I'm using cURL to pull the contents of a remote site. I need to check all "href=" attributes and determine if they're relative or absolute path, then get the value of the link and path it to something like href="http://www.website.com/index.php?url=[ABSOLUTE_PATH]"</p>
  
  <p>Any help would be greatly appreciated.</p>