// 年份
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 + "))";
SVG中年月日相关的表达式
最新推荐文章于 2025-04-19 10:50:33 发布