aspose file tools*
The moose likes Struts and the fly likes Regular expressions in mask Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regular expressions in mask" Watch "Regular expressions in mask" New topic
Author

Regular expressions in mask

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
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

Joined: Jul 01, 2003
Posts: 275
I got it........thanx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regular expressions in mask