Transform collections of strings in to regular expressions.