Regular Expression

  • Date in Format DD/MM/YYYY
    ^(0[1-9]|1[0-9]|2[0-9]|3[0-1])[/](0[1-9]|1[0-2])[/](1[9][0-9][0-9]|2[0][0-9][0-9])$
  • Indian PIN Code
    ^[1-9][0-9]{5}$
  • PAN No
    [A-Z]{5}[0-9]{4}[A-Z]{1}
  • Document files only
    ([a-zA-Z0-9\s_\\.\-:])+(.doc|.docx|.pdf)$
  • Image files only
    ([a-zA-Z0-9\s_\\.\-:])+(.png|.jpg|.gif)$
  • Text files only
    ([a-zA-Z0-9\s_\\.\-:])+(.txt)$
  • Excel files only
    ([a-zA-Z0-9\s_\\.\-:])+(.xls|.xlsx)$
  • Alfanumeric
    ^[a-zA-Z0-9]*$
  • Name Validation
    [a-zA-Z][a-zA-Z ]+
  • Validate a number 5 digits and 2 decimal places with zero
    ^\d{1,5}(\.\d{1,2})?$
  • Email IDs
    • ^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$
    • [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?