Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 66784 invoked from network); 28 Feb 2005 21:21:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Feb 2005 21:21:31 -0000 Received: (qmail 60091 invoked by uid 500); 28 Feb 2005 21:21:27 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 60060 invoked by uid 500); 28 Feb 2005 21:21:27 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 60047 invoked by uid 99); 28 Feb 2005 21:21:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from post5.inre.asu.edu (HELO post5.inre.asu.edu) (129.219.110.120) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 28 Feb 2005 13:21:26 -0800 Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0ICN008014FSIF@asu.edu> for commons-user@jakarta.apache.org; Mon, 28 Feb 2005 14:16:40 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0ICN003Q74FSH4@asu.edu> for commons-user@jakarta.apache.org; Mon, 28 Feb 2005 14:16:40 -0700 (MST) Received: from A2000018 (wsmoak.vpia.asu.edu [209.147.173.40]) by smtp.asu.edu (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with SMTP id j1SLGcMC028086 for ; Mon, 28 Feb 2005 14:16:38 -0700 (MST) Date: Mon, 28 Feb 2005 14:16:39 -0700 From: Wendy Smoak Subject: [validation] Help with 'contains' validation To: commons-user@jakarta.apache.org Message-id: <038201c51dda$cb37b970$28ad93d1@irm.local> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm trying to validate a password such that it cannot contain the userId. Is this something I can do in validation.xml? I'm currently using a mask in validation.xml: mask ^[0-9a-zA-Z!%*-_+=:,\./?]*$ (And I'm not very good at regular expressions, so if there's a better way to say "letter, digit, or any of these special characters, I would appreciate a suggestion.) Can it be done with validwhen? How do I say "does not _contain_ userId"? I'd like it to be case insensitive, but could live without that if it's easier. Thanks, Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org