Re: [OT] Help with REgular Expressions in Validate()

2005-05-22 Thread Laurie Harper
EMAIL PROTECTED] Behalf Of Laurie Harper Sent: Saturday, May 21, 2005 11:47 PM To: user@struts.apache.org Subject: Re: [OT] Help with REgular Expressions in Validate() Or better yet, "^\\W+$", if whitespace is the only thing you want to exclude; your original expression says '

RE: [OT] Help with REgular Expressions in Validate()

2005-05-21 Thread meyawn
or if you want the negative of that "^[^a-zA-Z]$" -Original Message- From: meyawn [mailto:[EMAIL PROTECTED] Sent: Saturday, May 21, 2005 11:53 PM To: Struts Users Mailing List Subject: RE: [OT] Help with REgular Expressions in Validate() wait a min... \w = word character: [

RE: [OT] Help with REgular Expressions in Validate()

2005-05-21 Thread meyawn
M To: user@struts.apache.org Subject: Re: [OT] Help with REgular Expressions in Validate() Or better yet, "^\\W+$", if whitespace is the only thing you want to exclude; your original expression says 'match one more non-whitespace characters', so with the input 'My Name

Re: [OT] Help with REgular Expressions in Validate()

2005-05-21 Thread Laurie Harper
gberg [mailto:[EMAIL PROTECTED] Sent: Saturday, May 21, 2005 2:20 AM To: Struts Users Mailing List Subject: Re: [OT] Help with REgular Expressions in Validate() I have a small swing application (setup on webstart) for testing regular expressions here: http://lili.net/java/test-regex.jnlp Or

RE: [OT] Help with REgular Expressions in Validate()

2005-05-21 Thread meyawn
21, 2005 2:20 AM To: Struts Users Mailing List Subject: Re: [OT] Help with REgular Expressions in Validate() I have a small swing application (setup on webstart) for testing regular expressions here: http://lili.net/java/test-regex.jnlp Or I can send you the code to test it yourself if you wish

Re: [OT] Help with REgular Expressions in Validate()

2005-05-20 Thread Brady Hegberg
I have a small swing application (setup on webstart) for testing regular expressions here: http://lili.net/java/test-regex.jnlp Or I can send you the code to test it yourself if you wish. it won't fix your problem but it's a handy tool for narrowing it down. Brady > Hi all > I markled this OT b

[OT] Help with REgular Expressions in Validate()

2005-05-20 Thread David Johnson
Hi all I markled this OT because it's not a Struts question strictly speaking. what I'm trying to do is disallow names that contain spaces or special characters in the validate() method of my ActionForm Code: String pattern = "\\W+"; log.debug("Testing validity of name "+name+ " against "+patter