This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regular expressions in mask

 
Grishma Dube
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using struts validator for validating inputs in text box. I've defined a genericMask

<constant>
<constant-name>genericMask</constant-name>
<constant-value>^[a-zA-Z0-9 ]*$</constant-value>
</constant>

an using this mask for validation. I want to add some special chars such as -/# to this mask. But whenever I'm adding this, the validator is not validating properly and giving me invalid input validation error on each field using genericMask.

Can someone help me in resolving this problem.

TIA

Grishma
 
Grishma Dube
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it........thanx
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic