Matching first or all occurencies with filter?

Matching first or all occurencies with filter?

Assume I have the following jQuery statement:

$("p").filter( function(){ return $(this).text().match(/^\s*$/) }).remove();

Is this remove() executed for ALL occurencies which are matched or only for the first found?


if latter: How can I appliy the removal to ALL occurencies?


Peter