[EMAIL PROTECTED] wrote: > I am looking for python code that takes as input a list of strings > [...] and outputs the python regular expression
(s1|s2|s3|s4|s5) for strings of "s1" etc. Regex compilers are themselves quite good at optimising beyond this -- http://mail.python.org/mailman/listinfo/python-list