Android Email check 正则表达式

(?:[-!#-\\'*+\\x2f-9=?A-Z^-~]+(?:\\.[-!#-\\'*+\\x2f-9=?A-Z^-~]+)*|\"(?:[!#-\\[\\]-~]|\\\\[\\x09 -~])*\")@[-!#-\'*+\\x2f-9=?A-Z^-~]+(?:\\.[-!#-\'*+\\x2f-9=?A-Z^-~]+)*

kotlin方法
例:
fun isEmailAddress(str: String): Boolean {
return match(str, "(?:[-!#-\\'*+\\x2f-9=?A-Z^-~]+(?:\\.[-!#-\\'*+\\x2f-9=?A-Z^-~]+)*|\"(?:[!#-\\[\\]-~]|\\\\[\\x09 -~])*\")@[-!#-\'*+\\x2f-9=?A-Z^-~]+(?:\\.[-!#-\'*+\\x2f-9=?A-Z^-~]+)*")
}
 
05-08 08:30