Modifiers change the behavior of the regex pattern. 2 methods to invoke them (inline) or at the end of the pattern (which varies on programming language/application).
Some common ones are:
- i =~ case insensitive.
- s =~ period matches new line.
- m =~
$ match new line instead of start and end of string.
- x =~ free space mode with comments enabled.