repaired regex