RegexPlanet
Testing
Patterns
Status
Support
Options for Ruby Regular Expressions
Regular expressions can have options (also known as flags) that modify their behavior. Each engine supports a different set of options.
Option
Description
Backend value
Portable value
x
Extended: Ignore whitespace and '#' comments
comment
comments
i
Case-insensitive
ignorecase
ignorecase
m
Multiline: Newlines are just another character
multiline
multiline