Skip to content

Kairo Validation

Common validation patterns.

Install kairo-validation.

build.gradle.kts
dependencies {
implementation("software.airborne.kairo:kairo-validation")
}

The Validator.emailAddress regex follows the WHATWG HTML Standard.

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