optimized regex statements