com.ideaaedi.commonds.constants.PatternConstant Maven / Gradle / Ivy
The newest version!
package com.ideaaedi.commonds.constants;
import java.util.regex.Pattern;
/**
* 正则常量
*
* @author JustryDeng
* @since 1.0.0
*/
public interface PatternConstant {
/**
* 中文&中文标点正则
*
* [\u4e00-\u9fa5]是中文,其余的是中文标点符号
*/
Pattern CHINESE_PATTERN = Pattern.compile("[\u4e00-\u9fa5]|[\uFF01]|[\uFF0C-\uFF0E]|[\uFF1A-\uFF1B"
+ "]|[\uFF1F]|[\uFF08-\uFF09]|[\u3001-\u3002]|[\u3010-\u3011]|[\u201C-\u201D]|[\u2013-\u2014]|[\u2018"
+ "-\u2019]|[\u2026]|[\u3008-\u300F]|[\u3014-\u3015]");
}