I would like to convert this text {unsubscribe|here.} to <a href="">here.</a>.
I have already wrote the regular expression that picks up the different groups of matches.
In this case I know I can preg/str_replace the front and the end (}) of the text however this would be ineffective as i also would like to strip out another value like this which would be {name} for example.
This is the regular expression I have wrote. /(\{unsubscribe\|)([a-z]*[^\}])(\})/
Thanks,
output: