Thank you, it works!
Can we try it for a line in my real world?
the line goes like this:
String theLine = "Name: lhorenz AreaCode: 054 Book: 0012C Page: 00260";
I've tried using:
Scanner lineScanner = new Scanner(theLine);
lineScanner.useDelimiter("^.*Name:\\s*");
the result is " lhorenz AreaCode: 054 Book: 0012C Page: 00260"
maybe you could give me a hint so i could just get "lhorenz" for the value of "Name:", "054" for AreaCode and so on.
I really appreciate the help, I really dont want to resort to using substring method and other String methods as much as possible.
Again, many thanks and regards
lhorenz