in reply to regex "o" modifier

It has no effect in that context. /o only applies when your expression uses interpolation. It causes interpolation to occur only on the first execution instead of every time. You only obfuscate your code by adding it onto invariant expressions.