1. Syntax: m//
2. g match globally
i case-insensitive
m treat string as multiple lines
o compile pattern only once
s treat string as single line
x use extended regular expression
3. If string not assigned to $_ then use string =~ //opt
4. For details see man perlop.