1Pattern p = Pattern.compile("(\\d+)|([a-zA-Z]+)");
2Matcher m = p.matcher("810LN15");
3List<String> tokens = new LinkedList<String>();
4while(m.find())
5{
6 String token = m.group( 1 ); //group 0 is always the entire match
7 tokens.add(token);
8}
9//now iterate through 'tokens' and check whether you have a number or text