The input is as follows
MY_PROJ10  
1st line  
2nd line  
MY_PROJ11  
3rd line  
4th line  
----------
Using Regular expressions I want to capture
result [0]  
Group 0 MY_PROJ10  
Group 1  
1st line  
2nd line
result [1]  
Group 0 MY_PROJ11  
Group 1  
3rd line  
4th line
My first crack at this is
regex = r"^(MY_PROJ.+)([\s\S]+)"
and then doing multi line
But this captures the all the following lines after MY_PROJ10
I am sure there way to do this in regular expressions.
I am trying with regex101.com but not luck as of yet
 
     
    