Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. only alpha and only numeric regex issue
  2. private static final String ALPHA_REGEX = "[^A-Za-z]+$";
  3.        
  4. private final static    Pattern NUMBER_ONLY_PATTERN = Pattern.compile("[^0-9 ]+$", Pattern.CASE_INSENSITIVE);