1. Loose the grouping where you can. Do you really need to check the two-caps, of could you just say \L\w{2}?
2. Use the 'o' modifier, as you don't use variables in your regex (see perlop).
Hope this helps,
Jeroen
"We are not alone"(FZ)
In reply to Re: Optimization for readability and speed (code)
by jeroenes
in thread Optimization for readability and speed (code)
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |