当前位置:网站首页>Expression related to month, year and day in SVG
Expression related to month, year and day in SVG
2022-04-23 07:54:00 【Dake mountain man】
// year
static string PatternYear { get; set; } = @"(<g>)?(?<Start><text.*>)(?<Year>\d{4} year ?)(?<End><\/text>)(<\/g>)?";
// English month
static string PatternEnglishMonth { get; set; } = @"(?<Start><text.*>)(?<EngMonth>[A-Za-z]{3,})(?<End></text>)";
// Digital month
static string PatternMonthNo { get; set; } = @"(?<Start><text.*>)((?<MonthNo>\d{1,2})|(?<Month2>(0?\d|d{2})))(?<End></text>)";
// " Gregorian month " (3 More than English letters +1 to 2 Word number month ). If it matches :”Jan 1“ or ”February 02“ etc.
static string PatternMonth { get; set; } = "((" + PatternEnglishMonth + @"[\r\n\t ]*" + PatternMonthNo + ")|(" + PatternMonthNo + @"[\r\n\t ]*" + PatternEnglishMonth + "))";
// " English month " ( Include full name or 3 Word abbreviation ). If it matches :“JANUARY”"FEB"“MAY” etc. , If case is ignored , Can match :”Jan“, ”JaNuary“, ”May“, ”October“ etc. .
static string PatternEngMonthName { get; set; } = @"((JAN(UARY)?|MA(R(CH)?|Y)|JUL(Y)?|AUG(EST)?|OCT(OBER)?|DEC(EMBER)?))|(SEPT|NOV|DEC)(EMBER)?|FEB(RUARY)?|APR(IL)?|JU((LY?)|(NE?))";
// Solar date
static string PatternDate { get; set; } = @"(<g>)?(?<Start><text.*>)(?<Date>\d{1,2})(?<End><\/text>)(<\/g>)?";
//“ The main branch ”, If it matches : Bing Chen
static string PatternGanZhi { get; set; } = @"(?<Start><text[^>].*>)(?<GanZhi>[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1}[ Specific date ]?[^<]*)(?<End></text>)";
//“ Zodiac year ”. If it matches :“ year of the ox ”“ The tiger ” etc. .
static string PatternAnimal { get; set; } = @"<text[^>].*>[ Rat, cow, tiger, rabbit, dragon, snake, horse 㺅 Chicken, dog and pig ]{1} year ?.*<\/text>"; //<text[^>].*>[ Rat, cow, tiger, rabbit, dragon, snake, horse 㺅 Chicken, dog and pig ]{1} year ?.*<\/text>
//“ English week for short ”
static string PatternWeekName { get; set; } = @"(?<Start><text.*>)(?<WeekName>[\s\t ]*[A-Z]{2,3})(?<End>[\s\t ]*</text>)";
//“ English week for short + Chinese serial number ”. matching :“SUN Japan ”“MO One ” etc. .
static string PatternWeekCnName { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<WeekCnName>[A-Z]{2,3}[\s\t\ ]*[ One, two, three, four, five, six ]{1})(?<End>[\s\t\ ]*</text>)";
//“ Lunar year + The lunar month ”. matching :“ Ren yinnian Ding chouyue ” etc.
static string PatternLuarYearMonth { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<LuarYearMonth>[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} year ?[\s\t]*[\[\{\(\(\{\[\【]?[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} month ?[\s\t\r\n ]*[\]\}\)\)\}\]\】]?)(?<End>[\s\t\r\n\ ]*</text>)";
//“ Lunar year + The lunar month ”( contain text label ). Matching is similar to :“ Jiayin year Wu Chenyue ”
static string PatternFullLuarYearMonth { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<LuarYear>[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} year ?)[\s\t\r\n ]*(?<LuarMonth>[\[\{\(\(\{\[\【]?[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} month ?[\s\t\r\n ]*[\]\}\)\)\}\]\】]?)(?<End>[\s\t\r\n]*</text>)";
//“ Lunar year + the Chinese zodiac ”( plaintext ). matching :“ Ren Yin 【 The tiger 】”" Ding Chou ( sheep )"“ Jia Chen { dragon }” etc. .
static string PatternYearAnimal { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<LuarYear>[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} year ?)[\s\t]*[{【\{\[(\(](?<Animal>[ Rat, cow, tiger, rabbit, dragon, snake, horse 㺅 Chicken, dog and pig ]{1} year ?)[】\}\]\))}](?<End>[\s\t\r\n]*</text>)";
//“ Lunar year + Zodiac year ”( contain text label ). If it matches :“ Ren yinnian 【 The year of the tiger 】”,“ Ding Chou ( cattle )” etc.
static string PatternFullYearAnimal { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<LuarYear>[ A, B, C, D, e, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C ]{1}[ Zichouyinmao has not applied for youxuhai in the afternoon ]{1} year ?)[\s\t\r\n ]*[【\{\[(\(](?<Animal>[ Rat, cow, tiger, rabbit, dragon, snake, horse 㺅 Chicken, dog and pig ]{1} year ?)[】\}\]\))](?<End>[\s\t\r\n]*</text>)";
//“ Lunar day ”
static string PatternLuarDate { get; set; } = @"(?<Start><text.*>[\s\t]*)(?<LuarDate>[ On the first day of the new year, two three four five six seven eight ninety-two ]{2})(?<End>[\s\t]*</text>)";
For ease of use , No serial number , use Bold For the title .
版权声明
本文为[Dake mountain man]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230625378334.html
边栏推荐
- Towords Open World Object Detection
- Unable to process jar entry [module info. Class]
- Unity gets the resources that a file depends on
- Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight
- Dropping Pixels for Adversarial Robustness
- One of event management
- 读书笔记
- Using lambda expression to solve the problem of C file name sorting (whether it is 100 or 11)
- 03Scanner类的使用(控制台输入)
- FUEL: Fast UAV Exploration using Incremental Frontier Structure and Hierarchical Planning
猜你喜欢
The projection vector of a vector to a plane
MySQL8. 0 installation / uninstallation tutorial [window10 version]
VBA calls SAP RFC to read & write data
将指定路径下的所有SVG文件导出成PNG等格式的图片(缩略图或原图大小)
使用flask时代码无报错自动结束,无法保持连接,访问不了url。
Understanding the role of individual units in a deep neural networks
Houdini > variable building roads, learning process notes
Rethink | open the girl heart mode of station B and explore the design and implementation of APP skin changing mechanism
Houdini > fluid, rigid body export, learning process notes
Zhuang understand's TA notes (VI) < fakeenvreflect & rust, rust effect >
随机推荐
Unity 获取一个文件依赖的资源
Scrapy 修改爬虫结束时统计数据中的时间为当前系统时间
C operation registry full introduction
Unity C single case mode learning review notes
Rethink | open the girl heart mode of station B and explore the design and implementation of APP skin changing mechanism
自己封装unity的Debug函数
Houdini>刚体, 刚体破碎RBD
KCD_EXCEL_OLE_TO_INT_CONVERT报错SY-subrc = 2
VBA调用SAP RFC实现数据读取&写入
SQL user-defined scalar value function that looks up relevant column values n times forward or backward according to a specified table name, column name and column value
庄懂的TA笔记(六)<FakeEnvReflect && 生锈,锈迹效果>
webflux文件上传下载
取得所有点列表中的最大值GetMaxPoint
C # control the camera, rotate and drag the observation script (similar to scenes observation mode)
SAP GUI安全性
Read and modify the JSON file under the resource folder
ABAP ALV显示金额与导出金额不一致
Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight
Dictionary & lt; T1,T2&gt; Sorting problem
Online Safe Trajectory Generation For Quadrotors Using Fast Marching Method and Bernstein Basis Poly