denoteone Posted March 20, 2009 Share Posted March 20, 2009 I am trying to get the reg ex to find what is between the following tags on a webpage. <b class=" yfi-price-change-down">105.06</b> I need to get 105.06 can anyone help I am very confused. Link to comment https://forums.phpfreaks.com/topic/150362-help-finding-a-string/ Share on other sites More sharing options...
.josh Posted March 20, 2009 Share Posted March 20, 2009 preg_match('~<b class=" yfi-price-change-down">.*?</b>~',$string,$match); print_r($match); Link to comment https://forums.phpfreaks.com/topic/150362-help-finding-a-string/#findComment-789700 Share on other sites More sharing options...
denoteone Posted March 23, 2009 Author Share Posted March 23, 2009 this what I have "ChangeDown" => array("pattern" => "/<b class=\"yfi-price-change-down\">(.+?)<\/b>/", "value" => "N/A"), I am not sure if I have the right regular expression to find what is between the bold tag with a class. Any help would be awesome. Link to comment https://forums.phpfreaks.com/topic/150362-help-finding-a-string/#findComment-791666 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.