Re: regular expressions
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 19:22:35 GMT
On Tue, 25 Apr 2006 19:08:12 GMT, "Oliver Wong" <owong@xxxxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
All of categories are mutually exclusive except for "Unicode
characters". And any character that you can get in memory via a program
written in Java is a "unicode character", so that last category seems pretty
redundant. Perhaps you mean something like a character within Unicode, but
outside of ASCII?
I think that is what he meant, something like ó or ⇒ You
just want to mix up the categories to foil a simple dictionary search.
You could do it pretty easily with a giant switch. Unfortunately
switches don't implement ranges, so you have have to code that
manually if you don't want to spell it out longhand. default handles
the unicode. You might add control character category and reject
such passwords. Putting whitespace on either end of a password is not
a wise idea.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Follow-Ups:
- Re: regular expressions
- From: Oliver Wong
- Re: regular expressions
- References:
- regular expressions
- From: 2rajesh . b
- Re: regular expressions
- From: Oliver Wong
- regular expressions
- Prev by Date: Re: Java Applet question
- Next by Date: Re: profiling result panic: javax.swing.SystemEventQueueUtilities.queueComponentWorkRequest 56% of time spent?
- Previous by thread: Re: regular expressions
- Next by thread: Re: regular expressions
- Index(es):
Relevant Pages
|
|