Is QQ number - Node.js Regular expression

Node.js examples for Regular expression:Validation

Description

Is QQ number

Demo Code

       qq : {// QQ number,from 10000 
          validator : function(value) { 
              return /^[1-9]\d{4,9}$/i.test(value); 
          }, /*from ww w  .  j  av a2 s.  c  o m*/
          message : 'QQ' 
       },

Related Tutorials