matches

fun ValidationBuilder<String>.matches(regex: Regex): Constraint<String>