Apply second filter on first selected elements?

Apply second filter on first selected elements?

The standard selection in jquery is

$(".foobar")..........

Now assume this expression matches multiple elements and I additionally want to filter out some of them.
How can I apply a second filter on the results of the first selection?

Example:

<div class="foobar bbb">....</div>
<div class="foobar">....</div>
<div class="foobar"><p>sometext</p></div>


1.) filter out (=ignore) all those elements which contain an additional class bbb
AND+NOT boolean link

2.) select from the result set only those elements which contain a string text "sometext"
AND boolean link

In both cases only the second and third element from the original should be finally selected.

How can I complete/extend

$(".foobar")..........

so that the final selection is still in one command?

Thank you
Peter