Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.