StringRegexExten extension

on

Methods

kisAccount({AccountRegex regex = AccountRegex.def, int min = 6, dynamic max = 18}) → bool

Available on String?, provided by the StringRegexExten extension

是否匹配用户名 min 最小位数,max最长位数
kisAPK(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为apk文件
kisAudio(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为音频文件
kisBool() → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为布尔值
kisChar() → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否只包含字母。(没有空格)
kisDateTime(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为时间 Example: 2020-04-27 08:14:39.977, 2020-04-27T08:14:39.977, 2020-04-27 01:14:39.977Z
kisDocument(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为doc文件
kisEmail() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配电子邮件
kisExcel(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为excel文件
kisHTML(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为html文件
kisIDCard() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配身份证号码
kisIdCardExact() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配身份证号码-精准匹配
kisImage(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为图像文件
kisIP() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配ip地址
kisIPv4(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为ipv4
kisIPv6(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为ipv6
kisMD5(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为md5
kisMobile() → bool

Available on String?, provided by the StringRegexExten extension

是否手机号,只判断11位数字
kisMobileExact() → bool

Available on String?, provided by the StringRegexExten extension

是否是手机号,精确验证
kisNumber(String s) → bool

Available on String?, provided by the StringRegexExten extension

只有数值不接受double数据类型的
kisPalindrome() → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为回文
kisPDF(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为pdf文件
kisPPT(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为ppt文件
kisQQ() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配QQ
kisSHA1(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为sha1
kisSHA256(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为sha256
kisTel() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配电话号码
kisTxt(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为txt文本文件
kisURL() → bool

Available on String?, provided by the StringRegexExten extension

是否匹配url
kisVector(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查string是否为vector文件
kisVideo(String s) → bool

Available on String?, provided by the StringRegexExten extension

检查字符串是否为视频文件
kisZh() → bool

Available on String?, provided by the StringRegexExten extension

是否汉字
matches(String regex) → bool

Available on String?, provided by the StringRegexExten extension

是否匹配正则表达式