phone:yup .string() .min(11, "شماره وارد شده صحیح نیست") .required("تلفن را وارد کنید") .matches(/^[09].[0-9]{9}$/, "شماره تلفن خود را به درستی وارد کنید ")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter