Skip to content

StrRegex

Check if string is Email address

"12345678@qq.com".isEmail()
StrRegexKt.isEmail("12345678@qq.com");

Check if string is QQ number

"123456710".isQQ()
StrRegexKt.isQQ("123456710");

String verified according to the Chinese phone number

Currently only mobile phone number verification in China is supported, refer to 2021 手机号正则表达式

"16612341213".isPhoneNumber()
StrRegexKt.isPhoneNumber("16612341213");

Check if string is a number

"123456789".isNumeric()
StrRegexKt.isNumeric("123456789");