我正在使用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
如果有人想要關閉此問題,請發表評論,以便我能理解問題所在。 –