Accessing a tag with a wild card character

Accessing a tag with a wild card character

Hi: I have a number of tags which have a id set to expand_<number>. number is a integer number. I want to build one click jquery function for all the tags. Is there some sort of wildcard mechanism to write a function? I have tried '#expand*' and it doesn't seem to be working.

$(function() {
$('#expand*').click(function() {
var pid = $(this).attr('id');
rid = pid.replace(/expand_/, '');
});
});

TIA
Ravi