This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Need help for Regular Expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need help for Regular Expression " Watch "Need help for Regular Expression " New topic
Author

Need help for Regular Expression

Theeranit Pongtongmuang
Greenhorn

Joined: May 17, 2009
Posts: 19
Hello everyone

I try to create pattern for user to create new password

pasword 's length must be equal or greater than 8
and the charactor can be a-z A-Z 0-9 and special charactor !@#$%^*()_+-?.,<>}{[]}
each charactor can occure equal or greater than 0


Thank you in advance
mark benz
Greenhorn

Joined: Aug 18, 2009
Posts: 15
Let us see what you have come up with so far
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Theeranit Pongtongmuang
Greenhorn

Joined: May 17, 2009
Posts: 19
Thanks for your reply
Nawapunth Manusitthipol
Greenhorn

Joined: Aug 14, 2009
Posts: 14
Try this: "[\d\w!@#\\$%\\^*\\(\\)_\\+\\-\\?.,<>\\{\\[\\]\\}]{8,}".


Middle path.
 
jQuery in Action, 2nd edition
 
subject: Need help for Regular Expression
 
Similar Threads
if statements
A Programmer's Guide to Java� Certification [mock exam] errata?
Given final block not properly padded
Threads Doubt??
Exception for number >= 0 and > 240