Interpolating a string into a regex October 25, 2022 by Tarik Same as string insertion. if goo =~ /#{Regexp.quote(foo)}/ #...