I have the following HTML code below, which acts as a template for a module on my php application. The following HTML code is stored as the string:
$parsedTemplate
Here is the HTML
<td>
[{item3}]
</td>
<td>
[{item2}]
</td>
<td>
[{item3}]
</td>
I want php to search the $parsedTemplate string and make an array like the following
'item1','item2','item3'
How can I achieve this in an efficient way? Regex maybe?