How to match #id patterns with wildcard?

How to match #id patterns with wildcard?

Assume I want to addres all ids which match the following pattern:

#advert-*

e.g.:

#advert-43256
#advert-54
#advert-888

How can I achieve this with jQuery?

The following does not work:

$("#advert-*")......