:contains selector to NOT search in children

:contains selector to NOT search in children

Hi guys, just wondering if there is any way for the :contains to not look in children to find something? 

Tried $(':contains("$")');, but it returns everything. Was thinking of something like $(":not(':parent')").filter( ':contains("$")');, but the console returns null (and even then it would exclude elements that have children and their text includes "$".)

Trying to make a script that looks through a page and finds the price on any page. The only way I could think of doing this relatively accurately is to search for all elements with "$" in the text, then get the one that has the largest height/width (That's problem #2, I think -- will deal with it once i get there :)

Since these aren't my pages, obviously can't set tags/ids but literally need to data-scrape. Thanks for any help!!