I am trying to make a regex code that will select from the second "ITEM1" to the first "ITEM2". Example:
ITEM1. text i don't want to find.
ITEM1. text I want to find
ITEM2. outside text
ITEM2 outside tex
Up until now, I came up with the following code:
(ITEM1)[\s\S]*?(ITEM2)
This select everythin from the first ITEM1 to the first ITEM2. I need the code to select between the second ITEM1 and the first ITEM2. Please let me know if you have any suggestions. Thank you in advance!!