RegexUtil class
Regex Util.
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 Methods
-
checkPwd(
String input, [int min = 10, int max = 20]) → bool - 至少一个大写字母,一个小写字母,一个数字,长度校验
-
isDate(
String input) → bool - Return whether input matches regex of date which pattern is "yyyy-MM-dd".
-
isEmail(
String input) → bool - Return whether input matches regex of email.
-
isIDCard(
String input) → bool - Return whether input matches regex of id card number.
-
isIDCard15(
String input) → bool - Return whether input matches regex of id card number which length is 15.
-
isIDCard18(
String input) → bool - Return whether input matches regex of id card number which length is 18.
-
isIDCard18Exact(
String input) → bool - Return whether input matches regex of exact id card number which length is 18.
-
isIP(
String input) → bool - Return whether input matches regex of ip address.
-
isMobileExact(
String input) → bool - Return whether input matches regex of exact mobile.
-
isMobileSimple(
String input) → bool - Return whether input matches regex of simple mobile.
-
isNumber(
String input) → bool - 是否是数字
-
isPositiveNumber(
String input) → bool - 是否是正数
-
isTel(
String input) → bool - Return whether input matches regex of telephone number.
-
isURL(
String input) → bool - Return whether input matches regex of url.
-
isZh(
String input) → bool - Return whether input matches regex of Chinese character.
-
matches(
String regex, String input) → bool
Constants
- regexAllNumber → const String
- 自然数
- regexDate → const String
- Regex of date which pattern is "yyyy-MM-dd".
- regexEmail → const String
- Regex of email.
- regexIdCard15 → const String
- Regex of id card number which length is 15.
- regexIdCard18 → const String
- Regex of id card number which length is 18.
- regexIp → const String
- Regex of ip address.
- regexMobileExact → const String
- Regex of exact mobile.
- regexMobileSimple → const String
- Regex of simple mobile.
- regexPositiveNumber → const String
- 正数
- regexTel → const String
- Regex of telephone number.
- regexUrl → const String
- Regex of url.
- regexZh → const String
- Regex of Chinese character.
- regexZhAll → const String
- 提取所有中文,包括标点符号