Monday, 14 January 2013

Reg Expressions validator imp list


 Email : "^([0-9a-zA-Z]([-\.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"



Only Numbers With Decimal :  "^[0-9]*\.?[0-9]+$"

Alphanumeric only :   "^[a-zA-Z0-9]*$"

Numbers with length between 2 to 5 Ex : "^([0-9]{2,5})$"

Numbers with Exact lenght(Example 5) : "^(\d{5})$"

No comments:

Post a Comment