Skip to main content

Regex Code used in Samarth Module

  1. PIN Code India (6 Digit starting with 1-9): '/^[1-9][0-9]{5}$/'

  2. Mobile Number (10 Digit Starting with 6-9): '/^[6789]\d{9}$/'

  3. Password (1 Uppercase, 1 Lowercase, 1 Special Character, 1 Numeric Length 8-13): '/^(?=.[!@#$%^&-])(?=.[0-9])(?=.[A-Z]).{8,13}$/'

  4. PAN Card (5 Character 4 Numeric 1 Character): '/[A-Za-z]{5}\d{4}[A-Za-z]{1}/'

  5. Aadhar Card (12 Digit Numeric): '/^\d{12}$/',