I am was making an if statement when I needed to check whether an unknown char is of any character set. Predefined or Custom.
I could just make many or statements but it would get messy. So is there any regex present to do this. I used a charAt(); function to get the last digit of it.I needed to check whether it is a digit or not. I currently need for digits only(0-9) but I would need more too.
This is my IF Statement
.....
if(mytext.equals("(") && (mytext2.charAt(text.length()-1)=='') {
......
}
.......
Please Help