REGEX Find and echo
Posted: Fri Nov 25, 2005 5:45 pm
Playing around a bit with REGEX and CURL on my weekend off (thanks pilgrims), and I'm hoping someone can help me with this.
YU_LoadPage returns the output from the CURL.
I just want to find the price on a page that says "Your account currently has $35.00 dollars!"
What am I missing?
Josh
Code: Select all
$homepage = YU_LoadPage("index");
$totalfunds = preg_match ("/Your account currently has $(.*) dollars!/", $homepage, $price);
echo "TEST PRICE: " . $price[0];I just want to find the price on a page that says "Your account currently has $35.00 dollars!"
What am I missing?
Josh