Valid mobile phone number - Node.js Regular expression

Node.js examples for Regular expression:Validation

Description

Valid mobile phone number

Demo Code


       mobile : {//from   www  .  j ava 2  s . c  om
          validator : function(value) { 
              return /^(13|15|18|17)\d{9}$/i.test(value); 
          }, 
          message : 'cell phone number' 
       },

Related Tutorials