pattern

val pattern: String? = null(source)

When the instance value is a string, this provides a regular expression that a string instance MUST match in order to be valid.

Regular expressions should follow the regular expression specification from ECMA 262/Perl 5