trying remove items in a list not beginning with letters A-E, here is what I have, but it has no effect:
$("div.artist_type_filter div.element div.title a").each(function(){
if($(this).html().match(/^[a-eA-E].*$/) === null){
$(this).remove();
}
});
Change
/^[a-eA-E].*$/to/^[a-eA-E]/.Update
I misunderstood. Your regex works fine. The selector might has problem. Anyway, my simpler regex also works fine.