标签:address roi span back and add style size match
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^-~]+)*")
}
标签:address roi span back and add style size match
原文地址:http://www.cnblogs.com/shmilyGWT/p/7088419.html