Given input as:
#start
random string 1
#end
#start
random string 2
#end
I can write a regex as
(#start[\s\S]*?#end)
Now thing gets a bit complex with this given data:
#start
random string 1
#start
random string 2
#end
#end
#start
random string 3
#end
and i want to get 03 matches, which are:
#start
random string 1
#end
#start
random string 2
#end
#start
random string 3
#end
Will this even be possible with regex? Cause i tried most of the regex rules, but i think i missed something cause it doesn't work as I want.
Can someone show me which rules can I used to achieve this goal?
Thank you.