I would like to remove the colon only if its the first character of a string. I have tried the following but it doesnt work. Any help would be appreciated:
//remove the colon if its the first character..
$pattern = '/^:/';
$replace = '';
$tweet = preg_replace($pattern, $replace, $tweet);
escape the colon: