$('.hey-2')
the selectors for sizzle (the jquery selector engine) begin with basic css and then move from there. so if you can style an element with a selector, you can grab it from jquery the same way.
for a list of selectors take a look at the jquery api
EDIT
so i would think the first thing to eliminate is limiting it to tr/th and just doing something like
$('table [class^=hey-2]')
that simplifies it quite a bit.
i tend to agree with the other answers though. if the items legitimately have something in common, why not give them a common class? instead of class="hey-2-aa"
make it class="hey-2 aa"
then you really can just use the original answer i posted.