public static string GetComment(this VBAParser.RemCommentContext remComment) { string rawComment = remComment.GetText(); string bodyOnly = Regex.Replace(rawComment, ":?REM(.*)", "$1", RegexOptions.IgnoreCase).TrimStart(); return bodyOnly; }