I’ve tried creating the regex I need, but even after half an hour I still didn’t succeed.
The regex should go like this:
hey string followed by ANY characters (new lines as well), that finishes with the first occourence of </div> string.
I’ve tried doing that but when I allow anything after the hey string, it becomes too greedy and returns one match that contains hey and anything after that, instead of giving me multiple matches that finishes with a </div>.
Thanks for the help.
I finally managed to create the desired regex:
hey((\s)|(.))*?
my attitude was a bit wrong, since if I want to find the first occurrence of something i should simply write it, but I made it thanks to craig1231 that let me know how to do it lazily.