Ruby Pocket Reference

Ruby Pocket Reference

Author:Fitzgerald, Michael [Michael Fitzgerald]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / General
ISBN: 9780596551742
Publisher: O'Reilly Media
Published: 2009-02-08T16:00:00+00:00


/pattern/options

Pattern pattern in slashes, followed by optional options, one or more of: i = case-insensitive; o = substitute once; x = ignore whitespace, allow comments; m = match multiple lines, newlines as normal characters.

%r!pattern!

General delimited string for a regular expression, where ! can be an arbitrary character.

^

Matches beginning of line.

$

Matches end of line.

.

Matches any character.

\1 . . . \9

Matches nth grouped subexpression.

\10

Matches nth grouped subexpression, if already matched; otherwise refers to octal representation of a character code.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.