public CalendarCommand(string ServerName) : base(ServerName) { sCalendarFunctions = new CalendarFunctions(ServerName); _regex = new Regex(@"((?<year>[0-9]{4,4})(?:[\.\s]+|))?" // Year + @"((?<month>[0-9]{1,2}|[a-zóüöúőűáéí]{3,20})(?:[\.\s]+|))?" // Month + @"((?<day>[0-9]{1,2})(?:[\.\s]+|))?" // Day + @"((?<hour>[0-9]{1,2})(?:[:]|))?" // Hour + @"(?<minute>[0-9]{1,2})?" // Minute + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase); _hamregex = new Regex(@"((?<hour>[0-9]{1,2})(?:[:]|))?" // Hour + @"(?<minute>[0-9]{1,2})?" // Minute + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase); }
public Calendar(string ServerName) { _servername = ServerName; sUnban = new Unban(ServerName); sCalendarFunctions = new CalendarFunctions(ServerName); }