regex dectecton touch up