Regex

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Regex(val pattern: String)

Validates that the string property value matches the specified regex pattern.

Properties

Link copied to clipboard

the regex pattern that the value must match