for($i=0;$i<100000;$i++){ if("test$i" =~ /(dest|\d)/){ # do stuff; } } for($i=0;$i<100000;$i++){ if("test$i" =~ /dest/ || "test$i" =~ /\d/){ # do stuff; } }
In reply to Re: Re: RE performance
by Vennis
in thread RE performance
by Vennis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |