Link to home
Start Free TrialLog in
Avatar of giberisk
giberisk

asked on

Text file formatting

Hello

I have the attached text file that I would like to reformat.

The new format of the text file must be :

00:17:32 - 342333
00:17:33 - 2343242394809848754533
00:17:34 - 908942859445345435345345345

As you can see I am only extracting the time and the largest PAR.
If a record contains PAR's of same length, choose any of them.
If a record is empty, dismiss it.

Thank you so much
RECORD 00001
2000/01/01 00:17:32
PAR 1: 1 
PAR 6:     
PAR 2:   
PAR 7:     
PAR 3:   
PAR 8:     
PAR 4:   
PAR 9:     
PAR 5:   
PAR 10:      
-----------------------
RECORD 00002
2000/01/01 00:17:33
PAR 1: 1 
PAR 6:     
PAR 2: 34242342342  
PAR 7:     
PAR 3:   
PAR 8: 55535328883    
PAR 4:   
PAR 9:     
PAR 5:   
PAR 10:      
-----------------------
RECORD 00003
2000/01/01 00:17:34
PAR 1:  
PAR 6:    
PAR 2:   
PAR 7:      
PAR 3:   
PAR 8:      
PAR 4:   
PAR 9:     
PAR 5:   
PAR 10:     
-----------------------

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of wdosanjos
wdosanjos
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giberisk
giberisk

ASKER

Brilliant!