January 2024
Intermediate to advanced
718 pages
20h 15m
English
Regular expression literals are objects of type Regexp. They are created explicitly by calling Regexp.new or implicitly by using the literal forms, /_pattern_/ and %r{_pattern_}. The %r construct is a form of general delimited input as described in General Delimited Input.
options is one or more of i (case insensitive), o (substitute once), m (matches newline), and x (allow spaces and comments). You can additionally override the default encoding of the pattern with n (no encoding-ASCII), e (EUC), s (Shift_JIS), or u (UTF-8).
Within a regular expression, each entry in the following table matches the characters described in its description. ...
Read now
Unlock full access