Checks whether a given string matches the regex. If not, a detailed Zod Error is thrown.
Optional
Readonly
Checks whether a given string matches the regex. If not, a detailed Zod Error is thrown.