Just to get this out of the way, you probably should have posted this into one of the Customization forums (maybe AutoLisp).
Well, the answer is that tblsearch does not use wildcards. It would be nice, but unfortunately it doesn't. You'll have to create a defun of your own which takes a wildcard string then compares it to all the layers in the table using wcmatch then call this function from your button macros, e.g.:
Code:
;; Find all layers matching a wildcard string
(defun checkLayer (str / lay lst)
(setq lst nil ;Initialize the list to be returned to empty
lay (tblnext "LAYER" t) ;Get the 1st layer in the layers table
) ;_ end of setq
;; Step through the layers table untill reaching the end
(while lay
;; Check if layername matches with str
(if (wcmatch
(cdr (assoc 2 lay)) ;Get layer name
str
) ;_ end of wcmatch
(setq lst (cons (cdr (assoc 2 lay)) lst)) ;Add layername to list
) ;_ end of if
(setq lay (tblnext "LAYER")) ;Get next layer
) ;_ end of while
lst ;Return the list of matching layers
) ;_ end of defun
This will return a list containing all the layer names matching the wildcard string, or nil of none are found to match.