repair regex