Valid ID card - Node.js Regular expression

Node.js examples for Regular expression:Validation

Description

Valid ID card

Demo Code

        idcard : {//ww w  .j ava2s .  com
          validator : function(value) { 
              return /^\d{15}(\d{2}[A-Za-z0-9])?$/i.test(value); 
          }, 
          message : '' 
        },

Related Tutorials