Use [\s\S]
instead of (.|\n|\r)
(使用[\s\S]
代替(.|\n|\r)
)
START[(d+)]([sS]+?)END[(d+)]
Demo(演示版)
To be sure to have the same number in START and END, use a backreference to group 1:(为确保在START和END中具有相同的编号,请对组1使用向后引用:)
(Credit to Aaron de Windt in comment)((对Aaron de Windt进行评论))
START[(d+)]([sS]+?)END[(1)]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…