I want to test whether a equals 1 or 2
a
I could do
a == 1 || a == 2
but this requires repeating
a.to_s()=~/^(1|2)$/