Documentation

regex()

Validates that the string matches the specified regular expression.

regex(pattern: RegExp, error?: StringConvertible): this;

Parameters

Return value

This builder, for chaining.

Related