| Author |
regular expression
|
Bushra Binte
Ranch Hand
Joined: Nov 07, 2006
Posts: 60
|
|
Hi,
does any one have an idea how regular expression(regex) for checking whether a string would contain:
1. atleast one letter
2. atleast one number
3. atleast one special charater (@,$,%,&)
thanks
|
 |
shivendra tripathi
Ranch Hand
Joined: Aug 26, 2008
Posts: 263
|
|
|
Try [a-zA-Z0-9@$%&]
|
SCJP 1.5(97%) My Blog
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 14606
|
|
try...
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: regular expression
|
|
|