0

problem with constraints

asked 2011-07-24 14:09:26 +0800

RakeshManne gravatar image RakeshManne
93 1

constraint for email is not working fine like when i enter two @ symbols and two dots it's accepting and constraint for int box is not accepting zero in the starting and it's not allowing to enter more than 10.plz help me........

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-07-25 01:40:34 +0800

matthewgo gravatar image matthewgo
375

updated 2011-07-25 01:40:57 +0800

Hi
try the following regular expression:
"/^\w+([+]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w)*$/"

and you could set format to solve your second question

/Matthew

link publish delete flag offensive edit

answered 2011-07-25 05:20:53 +0800

RakeshManne gravatar image RakeshManne
93 1

Really Thank you Matthew

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-07-24 14:09:26 +0800

Seen: 197 times

Last updated: Jul 25 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More