I have the following code:
{bookielink href="bet-at-home"} body content{/bookielink}
and I want to get the following:
<a href="index.php?bookie=bet-at-home">body content</a>
This is my tries:
$buffer = preg_replace("/.*{bookielink[^>]*}|.*/si", "<a>", $buffer);
$buffer = preg_replace("/.*{\/bookielink}|.*/si", "</a>", $buffer);