Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegEx Issue #30

Open
adityagundecha opened this issue Mar 11, 2016 · 0 comments
Open

RegEx Issue #30

adityagundecha opened this issue Mar 11, 2016 · 0 comments

Comments

@adityagundecha
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant