⚠️ NOTE: If you have any questions regarding the content presented below, feel free to post them here. I will be happy to help anyway I can! Regex is a big passion of mine and I look forward to hearing from you. 😁
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.