I need to find the first occurance of a colon \':\' and take the complete string before that and append it to a link.
e.g.
username: @twitter nice site!
$regEx = "/^([^:\s]*)(.*?:)/"; $replacement = "\1\2";