Good way to select the elements

Good way to select the elements

Hi

I have a doubt, Please clear me this doubt if some one have any idea.

Is there any better way to use the selectors (div[id$=''] , div[id ^= '']  , div[id  *= ''] ). I am using this way at so many places. I know this way of selecting the elements will be much expensive.Please let me know if there is any other better way.
Note: I do not have the complete ID, thats why I am using this way. Please let me know if you have any way to use.

example that I used: ("input[id$=reporter")