I have the following text:
From: .... blabla bla
Message: blablabalab
//linha em branco
From: .... blabla bla
Message: blablabalab
//linha em Branco
From: .... blabla bla
Message: blablabalab
How do I make my regex pick up where From
starts and before I start the next From
?
So far I have the following regex: From\s\-\s\w{3}\s\w{3}([^\n]*\n+)+
. What I want is for every piece of text that contains From
to start another From
to be in a group. Only my regex tah taking everything until the end of the text.
Does anyone know how I can do this?