Validates that a string property matches the given regular expression pattern.
`@pattern(/^[A-Z]{2}\d{3}$/) code: string;` Copy
`@pattern(/^[A-Z]{2}\d{3}$/) code: string;`
The regular expression to test against
Validates that a string property matches the given regular expression pattern.
Example