str = 'one two three four five'f = 'four'p str.match /four/p str.match /#{Regexp.escape f}/
Standard input is empty
#<MatchData "four"> #<MatchData "four">
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!