I'm trying to check for
'@username'
'@username,'
'@username '
'@username.'
'@username. '
'@username:'
'@username: '
I currently have this:
$post->message = preg_replace(
'/@ *('.preg_quote($speak['username'], '/').') *:/i',
'[url=\''.PAGE_URL.RELATIVE_WBB_DIR.'/index.php?page=User&userID='.$speak['toID'].'\']@'.$speak['username'].':[/url]',
$post->message);
Does anyone have any ideas how I can modify this to accept those inputs?