escape the inputed regex