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. Quote 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); Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/150362-help-finding-a-string/#findComment-791666 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.