RegExp and Jquery

RegExp and Jquery

Hello,
I would really appreciate some help/opinions on this:

Basically I have 4 select boxes each with a class of "selectFilter". They all have different options except for the first in each has a value of "x" and the text: "Show All". The page then lists member profiles (divs) which have names that list the answers to their profile questions seperated by pipes eg "1:yes|2:Often|3:No|4:advanced|". The numbers reference the select box that the answer applies to. So basically the select boxes are a filter system, if the answers are: "Show All","Show All","Yes","Show All", I want it to hide all the profiles that have "no" to the 3rd question and show all the others...

This is the code I have come up with but it only seems to work when the exact sequence of answers match in a profile..

var selects = '';
      $(".selectFilter").each(function(){
         var blah = new RegExp(x=/^([a-zA-Z0-9])+$/);
         var val = $(this).val();
         val = val.replace("x",blah);
         selects += $(this).attr("name")+':'+val+'|';
      });
      $(".profile_list:not([@name="+selects+"])").hide();
      $(".profile_list[@name="+selects+"]").show();

Does anyone have any ideas?? I know i haven't explained very well

Thanks

Paul