in reply to remove me, thank you.
in thread Regex Tuning /(?:(?:foo[34])|(?:bar[12]))\.txt/io

/o isn't all that useful in the general case. First off, it's only useful if you have variables in your regex definition, which isn't the case here. Secondly, it is often counter-intuitive because it locks the regex into the variable as it was when you defined the regex.

The Perfect is the Enemy of the Good.