$pins2 =~ s/\*/.*/g; # make key into regex string if containing *