You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package allin.utils
|
|
|
|
class RegexChecker {
|
|
|
|
private val emailRegex="^[A-Za-z0-9+_.-]+@(.+)$"
|
|
|
|
|
|
fun isEmailInvalid(email: String): Boolean {
|
|
val emailRegex = Regex(emailRegex)
|
|
return !emailRegex.matches(email)
|
|
}
|
|
|
|
} |