Zod, Non numeric string

How can i with zod enforce something to be a string and make sure it doesnt contain any numbers
2 Replies
charif
charif7mo ago
maybe z.string().regex(regex)
upio
upio6mo ago
i think its this right: z.string().regex(/[^0-9]/)

Did you find this page helpful?