RegexConstant.java 451 B

123456789101112
  1. package com.fuzamei.constant;
  2. public class RegexConstant {
  3. private RegexConstant(){
  4. throw new AssertionError("can not be instaniated");
  5. }
  6. //车牌号正则表达式
  7. public static final String CAR_NO="^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$";
  8. //订单正则表达式
  9. public static final String ORDER_ID="^\\d{8}$";
  10. }