Add optimized regex pattern