@planjs/utils
Version:
🔧 Common tools collection
163 lines (162 loc) • 3.23 kB
TypeScript
/**
* 手机号(mobile phone)中国(宽松), 只要是13,14,15,16,17,18,19开头即可
* @category RegExp
*/
export declare const REG_PHONE_LOOSE: RegExp;
/**
* 座机(tel phone)
* @category RegExp
*/
export declare const REG_TEL_PHONE: RegExp;
/**
* email
* @category RegExp
*/
export declare const REG_EMAIL: RegExp;
/**
* 手机机身码(IMEI)
* @category RegExp
*/
export declare const REG_IMEI: RegExp;
/**
* 身份证号, 支持1/2代(15位/18位数字)
* @category RegExp
*/
export declare const REG_ID_CARD: RegExp;
/**
* 必须带端口号的网址(或ip)
* @category RegExp
*/
export declare const REG_URI_WITH_PORT: RegExp;
/**
* 网址(url,支持端口和"?+参数"和"#+参数)
* @note 没有协议也会校验通过
* @category RegExp
*/
export declare const REG_URI_LOSE: RegExp;
/**
* 网址校验,必须带有协议,或者相对协议
* @category RegExp
*/
export declare const REG_URI: RegExp;
/**
* 子网掩码
* @category RegExp
*/
export declare const REG_SUBNET_MASK: RegExp;
/**
* md5 32
* @category RegExp
*/
export declare const REG_MD532: RegExp;
/**
* version x.y.z
* @category RegExp
*/
export declare const REG_VERSION: RegExp;
/**
* linux文件夹路径
* @category RegExp
*/
export declare const REG_LINUX_FOLDER_PATH: RegExp;
/**
* linux文件路径
* @category RegExp
*/
export declare const REG_LINUX_FILE_PATH: RegExp;
/**
* window"文件夹"路径
* @category RegExp
*/
export declare const REG_WINDOWS_FOLDER_PATH: RegExp;
/**
* window下"文件"路径
* @category RegExp
*/
export declare const REG_WINDOWS_FILE_PATH: RegExp;
/**
* 银行卡号
* 10到30位, 覆盖对公/私账户, 参考 https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=22_1
* @category RegExp
*/
export declare const REG_BANK_CARD_NUM: RegExp;
/**
* 匹配中文
* @category RegExp
*/
export declare const REG_CN: RegExp;
/**
* 不包含中文
* @category RegExp
*/
export declare const REG_NO_CN: RegExp;
/**
* 匹配英文
* @category RegExp
*/
export declare const REG_EN: RegExp;
/**
* 中文名
* @category RegExp
*/
export declare const REG_CN_NAME: RegExp;
/**
* 英文名
* @category RegExp
*/
export declare const REG_EN_NAME: RegExp;
/**
* 统一社会信用代码
* @category RegExp
*/
export declare const REG_UNIFIED_SOCIAL_CREDIT_CODE: RegExp;
/**
* 小数
* @category RegExp
*/
export declare const REG_DECIMAL: RegExp;
/**
* 数字
* @category RegExp
*/
export declare const REG_NUMBER: RegExp;
/**
* 英文字母
* @category RegExp
*/
export declare const REG_ENGLISH: RegExp;
/**
* ip-v4
* @category RegExp
*/
export declare const REG_IPV4: RegExp;
/**
* ip-v6
* @category RegExp
*/
export declare const REG_IPV6: RegExp;
/**
* 16进制颜色
* @category RegExp
*/
export declare const REG_HEX_COLOR: RegExp;
/**
* 颜色16进制颜色,rgb或rgba
* @category RegExp
*/
export declare const REG_COLOR: RegExp;
/**
* 邮政编码(中国)
* @category RegExp
*/
export declare const REG_POSTAL_CODEi: RegExp;
/**
* 判断是否是base64
* @category RegExp
*/
export declare const REG_BASE64: RegExp;
/**
* 判断是否data url
* @category RegExp
*/
export declare const REG_DATA_URL: RegExp;