reg.js 257 B

123456
  1. export const reg_newpass=/^[0-9a-zA-Z-_]{6,18}$/
  2. export const reg_username=/^[\u2E80-\u9FFFa-zA-Z]+$/
  3. export const reg_phone=/(^0\d{2,3}\-\d{7,8}$)|(^1[2|3|4|5|6|7|8|9][0-9]{9}$)/
  4. export const amount=/^\d+(\.\d+)?$/
  5. export const figure=/^(-)?\d+(\.\d+)?$/