Hi all.
I am a newcomer to these forums, as well as to php coding, so please bear with me if the question sounds dumb or is inappropriate for this forum 🙂
I am having been messing around with regular expressions trying to parse as string in such a way that I add a hyperlink reference into it to resemble functionality often found in forums and for example in wiki tools.
What I want to do is take $originalString and turn it into $finalString. I have tried all kinds of things, but have been coming up short. If anyone out there can nudge me in the right direction I would be really thankful.
$originalString = "This is the [[link]] I am looking for";
$finalString = "This is the <a href='link'>link</a> I am looking for";