I have the following regex: start([\s\S]*?)end
.
The regex should only match between start
and end
.
start text text text end
And discard matches containing forbidden
between start
and end
.
start text text text forbidden end
I have tried adding a negative lookahead but i can't get it to work.