// 年份
static string PatternYear { get; set; } = @"(<g>)?(?<Start><text.*>)(?<Year>\d{4}年?)(?<End><\/text>)(<\/g>)?";
// 英文月份
static string PatternEnglishMonth { get; set; } = @"(?<Start><text.*>)(?<EngMonth>[A-Za-z]{3,})(?<End></text>)";
// 数字月份
static string PatternMonthNo { get; set; } = @"(?<Start><text.*>)((?<MonthNo>\d{1,2})|(?<Month2>(0?\d|d{2})))(?<End></text>)";
// "阳历月" (3字母以上的英文+1至2字的数字月份)。如匹配:”Jan 1“或”February 02“等
static string PatternMonth { get; set; } = "((" + PatternEnglishMonth + @"[\r\n\t ]*" + PatternMonthNo + ")|(" + PatternMonthNo + @"[\r\n\t ]*" + PatternEnglishMonth + "))";
// "英文月" (包括全称或3字简称)。 如匹配:“JANUARY”"FEB"“MAY”等,如忽略大小写,可以匹配:”Jan“, ”JaNuary“, ”May“, ”October“等。
static string PatternEngMonthName { get; set; } = @"((JAN(UA
SVG中年月日相关的表达式
最新推荐文章于 2025-05-11 08:00:31 发布

最低0.47元/天 解锁文章
2420

被折叠的 条评论
为什么被折叠?



