Is fax Number - Node.js Regular expression

Node.js examples for Regular expression:Validation

Description

Is fax Number

Demo Code

     faxno : {/*from  w ww .j a v a 2s  . c o  m*/
       validator : function(value) { 
         return /^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/i.test(value); 
       }, 
       message : 
     },

Related Tutorials