Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Alternate delimiter matching slashes

  • %r
text = "some/path"
match = /\/(.*)/.match(text)
if match
  puts match.[1]
end

match = %r{/(.*)}.match(text)
if match
  puts match.[1]
end