How would I return the string between two string markers of a string in Ruby?
For example I have:
input_string
str1_marker
Just split it twice and get the string between the markers:
input_string.split("str1_markerstring").last.split("str2_markerstring").first