update regexp pattern for code complexity