RegexConstants class
正则表达式的常量,参考AndroidUtils:https://github.com/Blankj/AndroidUtilCode
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- alphabetOnly ↔ Pattern
-
Alphabet Only regex (No Whitespace & Symbols)
仅限字母正则表达式(无空格和符号)
getter/setter pair
- basicDateTime ↔ Pattern
-
DateTime regex (UTC)
时间正则表达式
Unformatted date time (UTC and Iso8601)
Example: 2020-04-27 08:14:39.977, 2020-04-27T08:14:39.977, 2020-04-27 01:14:39.977Z
getter/setter pair
- ipv4 ↔ Pattern
-
IPv4 regex
IPv4正则表达式
getter/setter pair
- ipv6 ↔ Pattern
-
IPv6 regex
IPv6正则表达式
getter/setter pair
- md5 ↔ Pattern
-
MD5 regex
md5正则表达式
getter/setter pair
- numericOnly ↔ Pattern
-
Numeric Only regex (No Whitespace & Symbols)
只有数字的正则表达式(没有空格和符号)
getter/setter pair
- passwordEasy ↔ Pattern
-
Password (Easy) Regex
Allowing all character except 'whitespace'
Minimum character: 8
getter/setter pair
- passwordEasyAllowedWhitespace ↔ Pattern
-
Password (Easy) Regex
Allowing all character
Minimum character: 8
getter/setter pair
- passwordHard ↔ Pattern
-
Password (Hard) Regex
Allowing all character except 'whitespace'
Must contains at least: 1 uppercase letter, 1 lowecase letter, 1 number, & 1 special character (symbol)
Minimum character: 8
getter/setter pair
- passwordHardAllowedWhitespace ↔ Pattern
-
Password (Hard) Regex
Allowing all character
Must contains at least: 1 uppercase letter, 1 lowecase letter, 1 number, & 1 special character (symbol)
Minimum character: 8
getter/setter pair
- passwordNormal1 ↔ Pattern
-
Password (Normal) Regex
Allowing all character except 'whitespace'
Must contains at least: 1 letter & 1 number
Minimum character: 8
getter/setter pair
- passwordNormal1AllowedWhitespace ↔ Pattern
-
Password (Normal) Regex
Allowing all character
Must contains at least: 1 letter & 1 number
Minimum character: 8
getter/setter pair
- passwordNormal2 ↔ Pattern
-
Password (Normal) Regex
Allowing LETTER and NUMBER only
Must contains at least: 1 letter & 1 number
Minimum character: 8
getter/setter pair
- passwordNormal2AllowedWhitespace ↔ Pattern
-
Password (Normal) Regex
Allowing LETTER and NUMBER only
Must contains: 1 letter & 1 number
Minimum character: 8
getter/setter pair
- passwordNormal3 ↔ Pattern
-
Password (Normal) Regex
Allowing all character except 'whitespace'
Must contains at least: 1 uppercase letter, 1 lowecase letter & 1 number
Minimum character: 8
getter/setter pair
- passwordNormal3AllowedWhitespace ↔ Pattern
-
Password (Normal) Regex
Allowing all character
Must contains at least: 1 uppercase letter, 1 lowecase letter & 1 number
Minimum character: 8
getter/setter pair
- sha1 ↔ Pattern
-
SHA1 regex
sha1正则表达式
getter/setter pair
- sha256 ↔ Pattern
-
SHA256 regex
sha256正则表达式
getter/setter pair
Constants
- REGEX_APK → const String
- APK 安装包扩展名(.apk)。
- REGEX_AUDIO → const String
- 音频文件扩展名(.mp3/.wav/.wma/.amr/.ogg)。
- REGEX_BLANK_LINE → const String
- Regex of blank line.
- REGEX_CHINA_POSTAL_CODE → const String
- Regex of postal code in China.
- REGEX_DATE → const String
- Regex of date which pattern is "yyyy-MM-dd".
- REGEX_DOC → const String
- Word 文档扩展名(.doc/.docx)。
- REGEX_DOUBLE_BYTE_CHAR → const String
- //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// Regex of double-byte characters.
- REGEX_EMAIL → const String
- Regex of email.
- REGEX_EXCEL → const String
- Excel 表格扩展名(.xls/.xlsx)。
- REGEX_FLOAT → const String
- Regex of float.
- REGEX_HEXADECIMAL → const String
- 纯十六进制字符串(任意长度 ≥1,大小写混排均可)。 与 RegexUtils.isHexColor(#RRGGBB 颜色格式)语义不同。
- REGEX_HTML → const String
- HTML 文件扩展名(.html,不含 .htm)。
- REGEX_ID_CARD15 → const String
- Regex of id card number which length is 15.
- REGEX_ID_CARD18 → const String
- Regex of id card number which length is 18.
- REGEX_IMAGE → const String
- 图片文件扩展名(.jpeg/.jpg/.gif/.png/.bmp)。
- REGEX_INTEGER → const String
- Regex of integer.
- REGEX_IP → const String
- Regex of ip address.
- REGEX_MD5 → const String
- MD5 格式:32 位十六进制(大小写均可)。
- REGEX_MOBILE_EXACT → const String
- Regex of exact mobile.
- REGEX_MOBILE_SIMPLE → const String
- Regex of simple mobile. 简单移动电话的正则表达式
- REGEX_NEGATIVE_FLOAT → const String
- Regex of negative float.
- REGEX_NEGATIVE_INTEGER → const String
- Regex of negative integer.
- REGEX_NOT_NEGATIVE_FLOAT → const String
- Regex of non-negative float.
- REGEX_NOT_NEGATIVE_INTEGER → const String
- Regex of non-negative integer.
- REGEX_NOT_POSITIVE_FLOAT → const String
- Regex of non-positive float.
- REGEX_NOT_POSITIVE_INTEGER → const String
- Regex of non-positive integer.
- REGEX_PDF → const String
- PDF 文档扩展名(.pdf)。
- REGEX_POSITIVE_FLOAT → const String
- Regex of positive float.
- REGEX_POSITIVE_INTEGER → const String
- Regex of positive integer.
- REGEX_PPT → const String
- PPT 演示文稿扩展名(.ppt/.pptx)。
- REGEX_QQ_NUM → const String
- Regex of QQ number.
- REGEX_SHA1 → const String
- SHA-1 格式:40 位十六进制,或冒号分隔的 20 字节形态。
- REGEX_SHA256 → const String
- SHA-256 格式:64 位十六进制,或冒号分隔的 32 字节形态。
- REGEX_TEL → const String
- Regex of telephone number.
- REGEX_TXT → const String
- 文本文件扩展名(.txt)。
- REGEX_URL → const String
- Regex of url.
- REGEX_USERNAME → const String
- Regex of username.
- REGEX_USERNAME1 → const String
- must contain letters and numbers, 6 ~ 18. 必须包含字母和数字, 6~18.
- REGEX_USERNAME2 → const String
- must contain letters and numbers, can contain special characters 6 ~ 18. 必须包含字母和数字,可包含特殊字符 6~18.
- REGEX_USERNAME3 → const String
- must contain letters and numbers and special characters, 6 ~ 18. 必须包含字母和数字和殊字符, 6~18.
- REGEX_VECTOR → const String
- SVG 矢量图扩展名(.svg)。
- REGEX_VIDEO → const String
- 视频文件扩展名(.mp4/.avi/.wmv/.rmvb/.mpg/.mpeg/.3gp)。
- REGEX_ZH → const String
- Regex of Chinese character.
- regexIdCard15 → const String
- Regex of id card number which length is 15.