diary-name-pattern

diary-name-pattern is a compiled Lisp function in `diary-lib.el'.

(diary-name-pattern STRING-ARRAY &optional ABBREV-ARRAY PAREN)

Return a regexp matching the strings in the array STRING-ARRAY.
If the optional argument ABBREV-ARRAY is present, the regexp
also matches the supplied abbreviations, with or without final `.'
characters. If the optional argument PAREN is non-nil, surrounds
the regexp with parentheses.