I am trying to match any text or any thing between two specific word START and END.
START
aba
asds
asdsa
END
NOTREQUIRED
START
fdfdfsds
ssdsds
sdsds
END
START
aba
asds
asdsa
END
NOTREQUIRED
START
fdfdfsds
ssdsds
sdsds
END
I have written a reg rule like this
START[\s\S]END
Problem is it is matching from first word of START to last occurrence of word END in the document.
and then I modified to rule
START(.*?)END
Now it only match the first set.
I want to match first occurrence of START with first occurrence of word END and Second occurrence of word START with second occurrence of word END and so on. How do I write my reg rule. I tried several rules as mention in this stack over flow thread but could not satisfy my need.
Please advice.