Ask whether the rule can match all the contents containing specific characters between specific strings.

the target string is as follows

/start
type 1
/end

/start
type 2
/end

/start
type 0
/end

/start
type 2
/end

/start
type 0
/end

can you match all the / start / end segments containing type 0 to

by regular matching?
Apr.15,2021

of course. /\ / start [^\ /] + type\ s* 0 [^\ /] +\ / end/g


\/start[\s\S]?type 0[\s\S]?\/end
Menu