title: How to parse relatively organized but not delimited text using Python?
body: <p>I'm trying to extract data from a text file which is formatted as shown in the picture. It includes list of surgeries and what I need from each case is: patient name, start time (time1), end time (time2), procedure type, and surgeon name. Here is the raw text. obviously patient and surgeon names are replaced by real names:</p>
  
  <pre><code>Run on: 10/07/19 - 1444                                                       Hospital                                                        PAGE 1
  
  Run by: H                                                          Final Slate For: 11/07/19 THU                                                   
  
  PIR        Patient Name                     R/L/B   Proposed Procedure                                          Surgeon                            Path Reg'd      Dur
  POR Time   Unit Number   PHN                                                                                    Assist                             Bld Req'd     PIR-POR
  Pri        DOB           Age/S                                                                                                                     Med Imaging
  Loc        Bed Type                                                                                                                                Req'd Staff
  Ward
  
  
  OR Room - 1                                           Room End Time: 1730          Anaesthetist: S,A T                                            
  OHS 0900-2000                                               
  0745       patient 1                             Replace Root and Ascending                                              surgeon1   GENERAL                
  1305       RC02654289   96985693                        Aorta/Hemiarch (Tissue), Amputate Left                                                   4 UNITS                
  3A         21/12/1943     75/M                            Atrial Appendage                                                                         Perfusionist           
  SDA        ICU                                                                                                                                                            
  RC-T2S    
   Weeks on Waitlist:  5   (36 days)                                                                                                                                  320
  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  
  1400       patient2                           Coronary Artery Bypass Graft                                            surgeon2   GENERAL                
  1730       RC00968458   906854959                                                                                                                 SCREEN                 
  2B         18/06/1958     61/M                                                                                                                     Perfusionist           
  INPT       ICU                                                                                                                                                            
  RC-T2S    
   Weeks on Waitlist:  2   (17 days)                                                                                                                                  210
                                                    Other Comments:   DM Type 2                                                                      
  
  Run on: 10/07/19 - 1444                                                      Hospital                                                        PAGE 2
  
  Run by: H                                                         Final Slate For: 11/07/19 THU                                                   
  
  PIR        Patient Name                     R/L/B   Proposed Procedure                                          Surgeon                            Path Reg'd      Dur
  POR Time   Unit Number   PHN                                                                                    Assist                             Bld Req'd     PIR-POR
  Pri        DOB           Age/S                                                                                                                     Med Imaging
  Loc        Bed Type                                                                                                                                Req'd Staff
  Ward
  
  
  OR Room - 2                                           Room End Time: 1825          Anaesthetist: K,N S                                             
  OHS 0900-1930                                               
  0745       Patient3                          Aortic Valve Replacement (Mechanical)                                   Surgeon3   GENERAL                
  1205       RC00584564   9095681571                                                                                                                 4 UNITS                
  3A         13/04/1955     64/F                                                                                                                     Perfusionist           
  SDA        ICU                                                                                                                                                            
  RC-T2S    
   Weeks on Waitlist: 14   (98 days)                                                                                                                                  260
                                                    Other Comments:   DM Type 2                                                                      
  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/rFKtw.png" alt="raw data"></p>
  
  <p>I need the output to be something like this:</p>
  
  <pre><code>patinet1 | time1 | time2 | procedure1 | surgeon1
  patinet2 | time1 | time2 | procedure2 | surgeon2
  .
  .
  .
  </code></pre>