on 08-08-2013 5:48 AM
Hi All,
Kindly share your thoughts or code to identify wheter Incoming data is alphanumeric or not.
Regards,
Mani
Got the code.
String str="123f";
if (str.matches("[z0-9]*")) {
System.out.println("Not alphanumeric");
}
else {
System.out.println("alphanumeric");
}
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.