I am having problem with this code as I am not getting the required output.
I need to collect content include between two tags.
I used:
$p_d=preg_match("/<a class=\"production-details-works\">(.*?)<div class=\"production-details-synopsis\".+>/s",$f);
Where $f is HTML content I already parse. $p_d is variable where I have to store my new content.
Tags I have used in preg_match already content more tags like <strong> and <br> and <p>. I need content with including these tags as I have to replace <br> tag with some other text.
Please help.
 
     
    
(.*?)