remove regex code