...so I'm trying to split data using the split() method of string. (And by the way, I'm impressed with how well regular expressions have evolved in Java since I last bent code in a serious fashion.)
Here's what I'm trying, and it doesn't seem to give me results I would predict:
public static void main(String[] args){
String s = "CSCO_9910290";
String [] ss = s.split("(.*)_(.*)"); // split on the _ character
System.out.println("Size of ss is: " + ss.length + "\n"); // this prints 0
for (String r : ss ){
System.out.println("result is: " + r + "\n");
}
System.out.println("Finished now..."); // declares completion of loop
}