support empty regex group