I’m trying to match @USERNAME in a string and replace it with @USERNAME
I’ve tried a few different methods:
preg_replace ('/@(.*?)/', '<a href="message.php?member=$1">$1</a>', $str)
and also [@] and @ but i just can’t seem to get it to work. any help would be appreciated!