I'm trying to write a REGEX to accept only numbers between 1-100. It would be great if it accepted everything from 1 to infinity, but that's probably to complex - or impossible.
public static boolean isNumeric(String str) {
return str.matches("-?\\d+(\\.\\d+)?");
}//end boolean.