3 ms·You can also use Regexp.new("/foo/bar") to achieve the desired result but the %r{} shortcut is handier.by Xylakant 13y agoYou can also use Regexp.new("/foo/bar") to achieve the desired result but the %r{} shortcut is handier.