extracting numeric values from a string

Hi,In my java program, there is a string that contains characters and numeric values. I want to extract that values to different variables in the program. Help me please. Thanks in advance.
[203 byte] By [anilnga] at [2007-10-1 1:16:07]
# 1

Here's a sample code:

// Author:Annie the Looney

public class TestString {

public static void main(String[] args) {

String str = "ad12cfg434nxf";

int len = str.length();

char test = ' ';

for(int counter = 0; counter < len; counter++) {

test = str.charAt(counter);

if(Character.isDigit(test)) {

System.out.println(test +"... is a digit");

} else {

System.out.println(test +"... not a digit");

}

}

}

}

***Annie***

annie79a at 2007-7-8 1:32:55 > top of Java-index,Security,Event Handling...