Replace regexp with list replace