This one will catch from and included START
until and included END
:
(?m)START[^$]{0,80}END
The option (?M)
is for using ^
and $
for start and end of lines instead of start and end of string.
This one will catch from and not included START
until and not included END
:
(?m)(?<=START)[^$]{0,80}(?=END)