You can create a
Regexp
Show archive.org snapshot
object from existing Regexp
objects by using the interpolation syntax you know from strings:
re1 = /x/
re2 = /a#{re1}b/
'aaxbb' =~ re2 # => 1
Posted by Henning Koch to makandra dev (2011-09-07 11:36)