Java Regex Number Validate isNumber_Lowerletter_Underline(String str)

Here you can find the source of isNumber_Lowerletter_Underline(String str)

Description

is Numbe Lowerlette Underline

License

LGPL

Declaration

public static boolean isNumber_Lowerletter_Underline(String str) 

Method Source Code

//package com.java2s;
/**// w  w  w .j ava  2 s.c o m
 *
 * Methods Descrip:Converts a line of text into an array of lower case words
 * using a BreakIterator.wordInstance().
 * <p>
 *
 * This method is under the Jive Open Source Software License and was
 * written by Mark Imbriaco.
 *
 * @param text
 *            a String of text to convert into an array of words
 * @return text broken up into an array of words.
 *
 */

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {

    public static boolean isNumber_Lowerletter_Underline(String str) {
        boolean flag = false;
        Pattern p = Pattern.compile("[A-Z0-9]*");
        ;
        Matcher m = p.matcher(str);
        ;
        flag = m.matches();
        return flag;
    }
}

Related

  1. isNumber(String str)
  2. isNumber(String str, String sign)
  3. isNumber(String value)
  4. isNumber(String value)
  5. isNumber(String value)
  6. isNumberForLength(String numStr, int length)
  7. isNumberLiteral(String s)
  8. isNumberOfShownValue(String inputString)
  9. isNumeric(String as_argument)