Options

By default, the comparison of the input string will use the options specified in the regular expression New Pattern dialog. However these options can be modified inline using the following regular expression options. These options will apply to the pattern at the point they are defined and will continue to apply until another regular expression option changes them or until the pattern ends.

Regular Expression Description
(?i) / (?-i) Enables/Disables case-sensitive mode. If case-sensitive mode is on, the string Cat would not match with the pattern [a-z]*
(?m) / (?-m) Enables/Disables multiline mode. If multiline mode is on, the pattern will accept input strings that contain multiple lines. The character classes ^ and $ will match the beginning and end of each line, instead of the beginning and end of the entire string.
(?n) / (?-n) Enables/Disables explicit capture mode. If explicit capture mode is on, only explicitly named capture groups, using the grouping construct (?<> expr) will be captured.
(?s) / (?-s) Enables/Disables single-line mode. If single-line mode is on, the character class . will match every character, including \n.
(?x) / (?-x) Enables/Disables ignoring white space. If this mode is on, unescaped white space in the regular expression will be ignored. To match white space the characters must be escaped using a character class or character escape.