Button-based Joke
Versions of this joke were published in New Zealand and Australian (and perhaps British?) newspapers from at least 1907 until 1935.
In some the landlady’s cat was implicated; in others the old soldier just mentioned that they were in differing, but unspecified, regiments.