Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validate multiple Email address in validation.xml file

 
Smriti Anchu
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This is the code written in validation.xml file.. now its validating multiple email address...but here dot (.) is optional,if i make dot (.) compulsory by giving something like this (\.) , it wont take next email(eg. a@a.com,b@g.com)

<field property="email"
depends="mask">
<arg0 key="createperson.email" />
<var>
<var-name>mask</var-name>
<var-value>^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$</var-value>
</var>
</field>

Kindly help me in this

bye
smriti
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic