I'm trying to write a page scraping script to take a currency of a site. I need some help writing the regular expression.
Here is what I have so far.
<?php
function converter(){
       // Create DOM from URL or file
       $html = file_get_contents("http://www.bloomberg.com/personal-    finance/calculators/currency-converter/");
    // Find currencies. ( using h1 to test)
        preg_match('/<h1>(.*)<\/h1>/i', $html, $title);
        $title_out = $title[1];
        echo $title_out;
}
 $foo = converter();
 echo $foo;
?>
Here is where the currencies are kept on the Bloomberg site.
site: http://www.bloomberg.com/personal-finance/calculators/currency-converter/
//<![CDATA[
      var test_obj = new Object();
      var price = new Object();
                price['ADP:CUR'] = 125.376;
What would the expression look like to get that rate? Any help would be great!!
 
     
     
     
    