optimized regex.