added preg_match to match smilies