How about: allLPPs=foreach(mapcar lp techFile~>lps list(lp~>name lp~>purpose)) drawPat=pcreCompile("^drawing") metals=setof(lpp allLPPs car(lpp)=="M1" && pcreExecute(drawPat cadr(lpp))) This will find all the purposes that begin with "drawing" for M1. You can change the pattern to suit your needs. Regards, Andrew.
↧