Open adityagundecha opened 8 years ago
Using the following in data.json { "key":"contact", "type":"edit_text", "hint":"Contact", "v_reg" : { "value" : "^[789]\d{9}$", "err" : "Enter a valid contact number." } }, { "key":"postal_code", "type":"edit_text", "hint":"Postal Code", "v_email":{"value":"^\d{3}\s?\d{3}$", "err":"Invalid Zip Code" } }, { "key":"employee_id", "type":"edit_text", "hint":"Employee Number", "v_email":{"value":"^[0-9]{4}$", "err":"Enter a 4 digit Employee ID" } }
But the reg exp is not getting validated. Can someone please help?
Using the following in data.json { "key":"contact", "type":"edit_text", "hint":"Contact", "v_reg" : { "value" : "^[789]\d{9}$", "err" : "Enter a valid contact number." } }, { "key":"postal_code", "type":"edit_text", "hint":"Postal Code", "v_email":{"value":"^\d{3}\s?\d{3}$", "err":"Invalid Zip Code" } }, { "key":"employee_id", "type":"edit_text", "hint":"Employee Number", "v_email":{"value":"^[0-9]{4}$", "err":"Enter a 4 digit Employee ID" } }
But the reg exp is not getting validated. Can someone please help?