正则验证表达 extjs中的form

{

                               
                                fieldLabel : "租户电话",
                                name : "phone",
                                regex : /^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/,
                                allowBlank : false,
                                blankText : "该项为必选项!"
              
                            }, {

                              
                                fieldLabel : "租户手机",
                                name : "mobile",
                              regex:/^(13[0-9]|15[0|3|6|8|9])\d{8}$/,
                                allowBlank : false,
                                blankText : "该项为必选项!"
                            },

posted @ 2008-11-14 20:47  Winner.Net(2007)  阅读(1218)  评论(0编辑  收藏  举报