Node.js examples for Regular expression:Validation
Is fax Number
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 : },