small problem with easy regex…I have an input and need the text between 2 words.
Example of input:
Blah Blah
Word1
New line text I need
Another important sentence for me
Word2
Blah blah
Word1
Line of important text
Word2
The end
And I need all the text between Word1 and Word2..Any tips?
You can use look-ahead and look-behind features of regular expressions: