Definition of ところがどっこい

ところがどっこい

tokorogadokkoi

expression
on the contrary