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
- apk ↔ Pattern
-
Document regex
apk正则表达式
getter/setter pair
- audio ↔ Pattern
-
Audio regex
音频正则表达式
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
- doc ↔ Pattern
-
Document regex
word正则表达式
getter/setter pair
- email ↔ Pattern
-
Email regex
email正则表达式
getter/setter pair
- excel ↔ Pattern
-
Excel regex
Excel正则表达式
getter/setter pair
- hexadecimal ↔ Pattern
-
Hexadecimal regex
getter/setter pair
- html ↔ Pattern
-
HTML regex
html正则表达式
getter/setter pair
- image ↔ Pattern
-
Image regex
图像正则表达式
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
- pdf ↔ Pattern
-
PDF regex
pdf正则表达式
getter/setter pair
- ppt ↔ Pattern
-
PPT regex
ppt正则表达式
getter/setter pair
- sha1 ↔ Pattern
-
SHA1 regex
sha1正则表达式
getter/setter pair
- sha256 ↔ Pattern
-
SHA256 regex
sha256正则表达式
getter/setter pair
- txt ↔ Pattern
-
Txt regex
文本正则表达式
getter/setter pair
- url ↔ Pattern
-
URL regex
Eg:
getter/setter pair
- vector ↔ Pattern
-
Image vector regex
图像向量正则表达式
getter/setter pair
- video ↔ Pattern
-
Video regex
视频正则表达式
getter/setter pair
Constants
- 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_DOUBLE_BYTE_CHAR → const String
- //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// Regex of double-byte characters.
- REGEX_EMAIL → const String
- Regex of email.
- REGEX_FLOAT → const String
- Regex of positive float.
- 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_INTEGER → const String
- Regex of integer.
- REGEX_IP → const String
- Regex of ip address.
- 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 positive float.
- REGEX_NOT_NEGATIVE_INTEGER → const String
- Regex of non-negative integer.
- REGEX_NOT_POSITIVE_FLOAT → const String
- Regex of negative float.
- REGEX_NOT_POSITIVE_INTEGER → const String
- Regex of non-positive integer.
- REGEX_POSITIVE_FLOAT → const String
- Regex of positive float.
- REGEX_POSITIVE_INTEGER → const String
- Regex of positive integer.
- REGEX_QQ_NUM → const String
- Regex of QQ number.
- REGEX_TEL → const String
- Regex of telephone number.
- 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_ZH → const String
- Regex of Chinese character.
- regexIdCard15 → const String
- Regex of id card number which length is 15.