[jQuery] Select an item by id using regular expression

[jQuery] Select an item by id using regular expression


Hi guys
This is my first post in this list.
I need help to do the following. I have some links, with the id's
link_1, link_2, link_3, etc. The number of links can be greater than
that. I would like to put the click event in all of then but, i don't
know how to write an regular expression to select them.
I have tried something like that:
$([@id=link_/[0-9]+/).click( ...
The code above don't work of course so, how can i do to do that?
Thank you