Modifier Meaning
e Evaluate the replacement side as an expression.
i Turn off case sensitivity.
m Treat a string as multiple lines.[a]
o Compile pattern only once. Used to optimize the search.
s Treat string as single line when newline is embedded.
x Allow whitespace and comments within the regular expression.
g Replace globally; i.e., find all occurrences.
|