I have the following text in a variable in PHP:
[e https://google.es]Lorem ipsum[/e]
And I want to transform it into:
<a href="https://google.es">Lorem ipsum</a>
I have other tags that are not that complex and I have been able to do them with a simple str_replace
, but this one requires regex (I suppose) and make it come in [e
and there ]
could be any content.