How can I get the value from the following tags:
{desc=1}
This is a description
{/desc}
The number in the {desc=1} is changing. I want to get the value as well.
UPDATED:
also possible to be more desc in the string, for example
{desc=1}
This is a description
{/desc}
{desc=2}
other description
{/desc}
...
This will capture everything you want.
Output: