Sha256: a6aa92595a785901053ac1b56588e7bd2a0aba278b34bae37c2e91f12b34a5c7

Contents?: true

Size: 1.37 KB

Versions: 6

Compression:

Stored size: 1.37 KB

Contents

# encoding: utf-8

module Rubymisc
  module Regex
    class Manual
      def self.man
        <<-EOS
Ruby character representations
------------------------------
  Sequence        Meaning
  \\a              Alert (bell), \\x07.
  \\b              Backspace, \\x08, supported only in character class.
  \\e              ESC character, \\x1B.
  \\n              Newline, \\x0A.
  \\r              Carriage return, \\x0D.
  \\f              Form feed, \\x0C.
  \\t              Horizontal tab \\x09.
  \\v              Vertical tab, \\x0B.
  \\0octal         Character specified by a two-digit octal code.
  \\xhex           Character specified by a two-digit hexadecimal code.
  \\cchar          Named control character.

Ruby character classses and class-like constructs
-------------------------------------------------
  Class           Meaning
  [...]           A single character listed, or contained within a listed range.
  [^...]          A single character not listed, and not contained within a listed range.
  .               Any character, except a line terminator (unless single-line mode, s).
  \\w              Word character.
  \\W              Nonword character.
  \\d              Digit.
  \\D              Nondigit.
  \\s              Whitespace character, [\\f\\n\\r\\t\\v].
  \\S              Nonwhitespace character, [^\\f\\n\\r\\t\\v].
        EOS
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubymisc-0.0.3.3 lib/rubymisc/regex/manual.rb
rubymisc-0.0.3.2 lib/rubymisc/regex/manual.rb
rubymisc-0.0.3.1 lib/rubymisc/regex/manual.rb
rubymisc-0.0.3 lib/rubymisc/regex/manual.rb
rubymisc-0.0.2 lib/rubymisc/regex/manual.rb
rubymisc-0.0.1 lib/rubymisc/regex/manual.rb