Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ifsc code yup validation

Yup.string()
      .required("IFSC Code Is Required")
      .test(
        "IFSC Code",
        "IFSC Code must be of length 11",
        (value) => value?.length === 11
      )
      .matches(
        /^[A-Za-z]{4}[a-zA-Z0-9]{7}$/,
        "First 4 characters must be alphabets and last 7 characters must be numbers"
      ),
 
PREVIOUS NEXT
Tagged: #ifsc #code #yup #validation
ADD COMMENT
Topic
Name
7+7 =