I have a string like below :
this is a testing string. Below is first div with id.
<div id='divid_first_fN8GiCLO_div'></div>
this is a testing string. Below is second div with id.
<div id='divid_second_fN8GiCLO_div'></div>
this is a testing string. Below is third div with id.
<div id='divid_third_fN8GiCLO_div'></div>
Required Result :
this is a testing string. Below is first div with id.
<iframe src="first_fN8GiCLO.html">
this is a testing string. Below is first div with id.
<iframe src="second_fN8GiCLO.html">
this is a testing string. Below is first div with id.
<iframe src="third_fN8GiCLO.html">
I have div id's with me, which need to be changes in iframe source's, Can I do it in some way using preg_match_all to get this done.. as it can be in multiple positions in string.
I need to pick ID form div and put that id in iframe and remove that div. Thanks !