(require :cl-ppcre) (defun test_1 () 1) (defun test_2 () 2) (defun test_3 () 3) (loop for f in (ppcre:regex-apropos-list "^test_" *package*) collect (cons f (funcall f))) ; => ((TEST_1 . 1) (TEST_3 . 3) (TEST_2 . 2))