Finding closest matching node, up down sideways, etc.

Finding closest matching node, up down sideways, etc.

How can I find the nearest node ancestor, descendent, sibling, cousin, etc, with a money string ($??.??) ?

$(node).closest("* match") didn't seem to work, and how to handle a regular expression there?