im trying to split a string but keep the delimiter at the beginning of the next token (if thats possible)
Example: I'm trying to split the string F120LF120L
into
F120
L
F120
L
I've tried
StringTokenizer st = new StringTokenizer(str, "F,L");
but that just returns
120
120