Answers for "ruby between string"

1

ruby get substring between two characters

str1_markerstring = "START"
str2_markerstring = "END"

substring = input_string[/#{str1_markerstring}(.*?)#{str2_markerstring}/m, 1]
Posted by: Guest on June-10-2020

Browse Popular Code Answers by Language