我正在使用JqueryValidationEngine在客户端验证我的表单。用于文本字段验证的正则表达式
我想在表单中使用正则表达式验证文本字段。条件如下:
编辑:
条件1:
It should not allow the user to enter single or multiple combinations of zeroes.
E.g. '0', '00,, '00000' etc.
条件2:
It should not allow the user to enter the any multiple digit number starting with 0, but excluding the condition1.
E.g. '01', '001, '001001' , '000001' etc.
我使用rubular.com检查正则表达式和我需要两个重新gex不允许上述两种类型的值。感谢:) -
需要,如果你还在寻找一个答案,要更新,因为它可能是不明确的,你需要什么样的条件完全相同的问题。 – tihom
如果有人想要关闭此问题,请发表评论,以便我能理解问题所在。 –