HomeToolsAbout a20k

REGEX in Rails

%r {}

Regexp holds a regular expression, used to match a pattern against strings

Regexps are created using the /.../ and %r{...} literals, and by the Regexp::new constructor.

© VincentVanKoh