Hacker News new | ask | show | jobs
by Xylakant 4434 days ago
You can also use

   Regexp.new("/foo/bar")
to achieve the desired result but the %r{} shortcut is handier.