Skip to content

Kairo Validation

Common validation patterns.

Install kairo-validation.

build.gradle.kts
dependencies {
implementation("com.highbeam.kairo:kairo-validation")
}

The Validator.emailAddress regex follows the WHATWG HTML Standard.

Validator.emailAddress.matches("jeff@highbeam.com") // true
Validator.emailAddress.matches("not-an-email") // false

This is a syntactic check only. It does not verify that the email address exists or that the domain has MX records. For production use, combine this with server-side verification (such as a confirmation email).