As example:

i have these variables and content:
%var1 work
%var2 car
%var3 girl
%var4 car.work
%var5 girl.work
%var6 girl.car

Now I want to searh all variables starting with %var for the word car.
When search is done, I have to notice $nick all finds (complete)

wich would be: /notice $nick %var2 %var4 %var6

Is this possible?

Thanks