in reply to Matching wirth ordered array
Further to choroba's post "... build a regex from all the terms ...": See also haukex's Building Regex Alternations Dynamically for a general discussion of this technique.
Give a man a fish: <%-{-{-{-<