Android String Char Get isValidChar(String strInput)

Here you can find the source of isValidChar(String strInput)

Description

is Valid Char

Declaration

public static boolean isValidChar(String strInput) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static boolean isValidChar(String strInput) {
        String strPattern = "^[0-9a-zA-Z]*$";
        Pattern p = Pattern.compile(strPattern);
        Matcher m = p.matcher(strInput);
        return m.matches();
    }//from   www. j  a v  a2  s  .  c o  m
}

Related

  1. charAt(String str, int index)
  2. charSubString(String str, int charLen)
  3. getCharLength(String str)
  4. getCharNum(String str, char ch)
  5. getFirstChar(String ch)
  6. isAllCharDigit(String str)
  7. isAllWhitespace(CharSequence str)