note
BoredByPolitics
Hmm, good suggestion, but these are the results I get -
<p><code>
Benchmark: timing 10000000 iterations of comp, exist, regex, regexo...
comp: 53 wallclock secs (53.96 usr + 0.00 sys = 53.96 CPU)
exist: 49 wallclock secs (49.23 usr + 0.00 sys = 49.23 CPU)
regex: 78 wallclock secs (77.40 usr + 0.00 sys = 77.40 CPU)
regexo: 78 wallclock secs (77.12 usr + 0.00 sys = 77.12 CPU)
</code>
<p>As you can see <code>regexo</code> isn't showing much difference.
Could this be because I'm using <code>/^[A..Z]$/o</code> instead
of your suggested <code>/^[A-Z]$/o</code>, or are they functionally
equivalent?
<p><i>Pete</i>
54003
54019