ruby get string between two strings code example
Example: ruby get substring between two characters
str1_markerstring = "START"
str2_markerstring = "END"
substring = input_string[/#{str1_markerstring}(.*?)#{str2_markerstring}/m, 1]
str1_markerstring = "START"
str2_markerstring = "END"
substring = input_string[/#{str1_markerstring}(.*?)#{str2_markerstring}/m, 1]