//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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Last edit: Duy Dinh 2012-04-02