In PHP, I want to make it so that if a user types:
[LINK] url [/LINK]
It will replace it with the anchor tag:
<a href=url>url</a>
How would I show this? I’m not sure how to translate this into regex…
I’ve tried the following:
[LINK][a-zA-Z0-9_-.]+[/LINK]
But obviously that isn’t right 🙁
Explanation: