Duy Dinh - 2012-04-02
//Guess gene or protein names                
String s = "p53 in human N832";
String[] words = s.split("[ ]+");
Pattern p = Pattern.compile("^[a-zA-Z]+[0-9]+") ;
for (String word : words){
    if (p.matcher(word).matches())
    System.out.println(word);
}
 

Last edit: Duy Dinh 2012-04-02