Pages

Java Regex AlphaNumeric

public boolean isAlphaNumeric(String text) {
        b = f;
        if (isNotEmpty(text)) {
            if (text.matches("[a-zA-Z0-9 ]+")) {
                b = t;
            }
        }
        System.out.println("-" + text);
        return b;
    }

No comments:

Post a Comment