I have the following Text string:
TEST:ABCDEGF:18:32
The letters in this text varies, it also includes numbers. Target is to extract all letters and numbers excluding : character.
Up until now the following was working for me:
lines.split(":");
Until I stumbled upon a new requirement where we need to extract the time as well in full form 18:32 which means if I use a split it only give me until 18
Now how do I extract this including time which can occur sometimes.
Examples
ABCDED:ERERE:18:32
Desired result:
 temp.fields[0] = ABCDED
 temp.fields[1] = ERERE
 temp.fields[2] = 18:32 
 
     
     
    