Transform collections of strings into regular expressions.