Jump to content

Regex Syntax


e1seix

Recommended Posts

<?php

$url = "http://www.directcosmetics.com/resul...nim&code=14770";
$html = file_get_contents($url);

preg_match('/<div class=\"value\">.*([0-9]+?\.[0-9]{2}).*<\/div>/Us', $html, $match);
print $match[2];

?>

  ???

 

Can someone point me in the right direction as to where my error lies to correct this regex?

 

As always, it's very much appreciated

Link to comment
https://forums.phpfreaks.com/topic/84775-regex-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.