📅  最后修改于: 2022-03-11 15:04:49.029000             🧑  作者: Mango
str1_markerstring = "START"
str2_markerstring = "END"
substring = input_string[/#{str1_markerstring}(.*?)#{str2_markerstring}/m, 1]