1234567891011121314151617181920212223242526272829303132333435 |
- package com.smppw.modaq.common.conts;
- import java.util.regex.Pattern;
- /**
- * 正则匹配表达式常量
- */
- public class PatternConsts {
- /**
- * 季度报告正则匹配
- */
- public static final Pattern QUARTERLY_PATTERN = Pattern.compile("(20[23]\\d)\\D*([一二三四1234])季");
- /**
- * 年度报告正则匹配
- */
- public static final Pattern ANNUALLY_PATTERN = Pattern.compile("(20[23]\\d)(年度|年报|年年度|年年报)?");
- /**
- * 月度报告正则匹配
- */
- public static Pattern MONTHLY_PATTERN = Pattern.compile("(20[23]\\d)[年_-]*(\\d{1,2})月?");
- /**
- * 严格的年月日匹配
- */
- public static final Pattern STRICT_DAY_PATTERN = Pattern.compile("(20[23]\\d)[年_-]*(\\d{1,2})[月_-]*(\\d{1,2})(?!\\d)");
- /**
- * 宽泛的日期匹配
- */
- public static final Pattern DAY_PATTERN = Pattern.compile("(20[23]\\d)[年_-]*(\\d{1,2})[月_-]*(\\d{1,2})[日号\\d]+");
- public static final Pattern FUND_CODE_PATTERN = Pattern.compile("S[A-Z0-9]{5}");
- public static final Pattern FUND_LEVEL_PATTERN = Pattern.compile("[A-F]级|基金[A-F]");
- }
|