Solved my own problem.  Just for those that do not know ...
 
Since mask is based on regular expressions, you can use:
  $[\x21-\x7E\xA0-\xFF]*
 
to match characters 32-126 and 160-255 of a character set.


-- James 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers. 

 

________________________________

From: Brown, James 
Sent: 2004 August 19 12:22
To: '[EMAIL PROTECTED]'
Subject: Validation mask ranges


We are in a bind so I reposting under a different topic.  Sorry, but ...
 
We are trying to limit user input to the following ranges in ISO-8859-1:
  32-126
  160-255
 
As well as characters 9, 10 and 13.
 
We have tried various things but have run into problems with the #&"'
characters, plus it is a large mask.
 
Along the lines of "^[A-Za-z]*" is there a means to enter character
ranges for a mask in struts validation?



-- James 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers. 

 

Reply via email to