Handle empty regex