        //ڐAyɂ邽C#RegexNX̃\bhbvg\bhQ by mukiyu
        public static bool ismatch(this string input, string pattern) {
            return Regex.IsMatch(input, pattern);
        }
        public static Match match(this string input, string pattern) {
            return Regex.Match(input, pattern);
        }
        public static MatchCollection matches(this string input, string pattern) {
            return Regex.Matches(input, pattern);
        }
        public static string replace(this string input, string pattern, string replacement) {
            return Regex.Replace(input, pattern, replacement);
        }
        public static string[] split(this string input, string pattern) {
            return Regex.Split(input, pattern);
        }
        //Match̖߂lȒPɈ߂̓z
        public static string g(this Match m, int i) {
            return m.Groups[i].Value;
        }
        //htmltodat̃C
        public static string htmltodat(this string input, string pattern){
            // ځ[̃`FbNgݍ
            var abnres = "ځ`<>ځ`<>ځ` ID:DELETED<>ځ`<>\n";
            var d = new StringBuilder(); var prev_resno = 0;

            foreach (Match m in input.matches(pattern)){
                var resno = int.Parse(m.g(1));
                if ( resno == 0 ) continue;
                for ( ; resno - prev_resno > 1; prev_resno++ ) { d.Append(abnres); } // XԍłƂځ[񃌃X̑}
                d.Append(m.g(3) + "<>" + m.g(2) + "<>" + m.g(4) + "<>" + m.g(5) + "<>" + "\n");
                prev_resno = resno;
            }
            return d.ToString();
        }
        //܂
