Regular expression pattern constraint for strings.
Pattern<Regex> is a type tag that validates string values match the
specified regular expression pattern. Apply it to string properties using
TypeScript intersection types.
This constraint is mutually exclusive with Format - you cannot use
both on the same property. Use Pattern for custom regex validation, or
Format for standard formats (email, uuid, etc.).
The pattern should be a valid JavaScript regular expression string without
the surrounding slashes. The entire string must match (implicit ^ and $
anchors).
The constraint is enforced at runtime by typia.is(), typia.assert(), and
typia.validate(). It generates pattern in JSON Schema output.
Regular expression pattern constraint for strings.
Pattern<Regex>is a type tag that validates string values match the specified regular expression pattern. Apply it tostringproperties using TypeScript intersection types.This constraint is mutually exclusive with Format - you cannot use both on the same property. Use
Patternfor custom regex validation, orFormatfor standard formats (email, uuid, etc.).The pattern should be a valid JavaScript regular expression string without the surrounding slashes. The entire string must match (implicit
^and$anchors).The constraint is enforced at runtime by
typia.is(),typia.assert(), andtypia.validate(). It generatespatternin JSON Schema output.