this is my custom tag
[extract=A:B(
<div>
<p>Some content...</p>
</div>
)]
- The word extract stays as it is.
- Value A has a string input (one word no spaces, no line breaks)
- Value B will contain html closed in (). it will contain line breaks
I am not good with regular expressions but this is basically what I want.
\/[extract=(.*?):(.*?)/]\
I need the appropriate pattern query and a foreach loop, preg_match_all(), to return A & B
Try this:
Should output: