private static string GetPattern(string token) { return token == "*" ? @"(.*)" : @"(" + token + ")"; }