FWIW, I became intrigued by all the suggestions here and found that Benchmark reveals Maclir's code to be the fastest (by about 30% on my system).
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: Expressing Intent
by arturo
in thread Regexs on Hash Keys
by Maclir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |