PHP Regex find text between custom added HTML Tags

lazzar

New Member
I have he following scenario:Got an HTML template file that will be used for mailing. Here is a reduced example:\[code\] <table><tr><td>Heading 1</td><td>heading 2</td></tr><PRODUCT_LIST><tr><td>Value 1</td><td>Value 2</td></tr></PRODUCT_LIST></table>\[/code\]All I need to do is to get the HTML code inside \[code\]<PRODUCT_LIST>\[/code\] and then repeat that code as many times as products I have on an array.What would be the right PHP Regex code for getting/replacing this List?Thanks!
 
Back
Top