[validator] Trouble using global constants in variable values

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Hello, we've been using commons-validator 1.3.1 along with Struts 1.3.8 to do form validation to great success for quite some time (thanks!). I was recently asked to change our password complexity requirements and I realized that we had the

Re: [validator] Trouble using global constants in variable values

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 2/10/2010 6:27 PM, Christopher Schultz wrote: constant-value^.*(([0-9]+.*\p{L}+)|(\p{L}+.*[0-9]+)).*$/constant-value Okay, something must be wrong with my regular expression, or now I'm expressing it in the XML, because when I set it to

Re: [validator] Trouble using global constants in variable values

2010-02-10 Thread Niall Pemberton
On Wed, Feb 10, 2010 at 11:46 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 2/10/2010 6:27 PM, Christopher Schultz wrote: constant-value^.*(([0-9]+.*\p{L}+)|(\p{L}+.*[0-9]+)).*$/constant-value Okay, something must be wrong

Re: [validator] Trouble using global constants in variable values

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niall, On 2/10/2010 7:21 PM, Niall Pemberton wrote: You could try testing you're expression directly using GenericValidator.matchRegexp() until you're happy it works. That's good to know. After dinner and a few drinks, I realized something:

Re: [validator] Trouble using global constants in variable values

2010-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 2/10/2010 8:55 PM, Christopher Schultz wrote: I'm looking for jakarta-oro's pattern syntax, but I can't seem to find a reference to it, other than that it is Perl 5 compatible. Perl 5 says stuff like \p{...} works, but I'll have to look at