Java Utililty Methods Regex Number Validate

List of utility methods to do Regex Number Validate

Description

The list of methods to do Regex Number Validate are organized into topic(s).

Method

booleanisNum(String str)
is Num
if ((str == null) || (str.equals(""))) {
    return false;
Pattern pattern = Pattern.compile("[0-9]*");
return pattern.matcher(str).matches();
booleanisNum(String str)
is Num
if (isBlank(str)) {
    return false;
String regEx = "[\\d]+";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(str);
return m.matches();
booleanisNumber(String data)
Using Regex, find if we have a number in the String
Matcher m = isNumber.matcher(data);
return m.find();
booleanisNumber(String number)
is Number
return NUMBER_REG.matcher(number).matches();
booleanisNumber(String s)
Returns true if input string is numeric and false otherwise
return (_numPattern.matcher(s).matches());
BooleanisNumber(String s)
is Number
Pattern pa = Pattern.compile("[0-9]*");
Matcher ma = pa.matcher(s);
if (ma.matches()) {
    return true;
return false;
booleanisNumber(String s, boolean[] realnum)
Return TRUE if z is a pure numeric string.
if (s == null)
    return false;
if (!NUMBER_PATTER.matcher(s).matches())
    return false;
if (realnum != null && realnum.length > 0) {
    realnum[0] = REAL_PATTERN.matcher(s).matches();
return true;
...
booleanisNumber(String str)
is Number
if (isNull(str)) {
    return false;
Pattern p = Pattern
        .compile(new StringBuilder("[-]?+[0-9]{").append((str.length() == 0 ? 1 : str.length() - 1))
                .append(",").append(str.length()).append("}").toString());
Matcher m = p.matcher(str);
return m.matches();
...
booleanisNumber(String str)
is Number
boolean res = false;
if (str != null && str.length() > 0) {
    Pattern pattern = Pattern.compile("^\\d+$");
    Matcher m = pattern.matcher(str);
    if (m.find()) {
        res = true;
return res;
booleanisNumber(String str)
Methods Descrip:
boolean flag = false;
if (str == null || str.equals("")) {
    return false;
Pattern p = Pattern.compile("[0-9]*");
;
Matcher m = p.matcher(str);
;
...