o option does not really do anything to speed up most regex, if you are using the same static regex over and over try qr// instead. That actually compiles the regex and can produce speedups. As you said however this does not answer the OP's question. =)