[EMAIL PROTECTED] wrote] > Exists some tool, programs or some able to compute the minimal regular > expression, namely ,taking a series of regular exoression, the minimal > one that makes the same matching?
def get_minimal_regex(*regexes):
return ".*"
:) Or, slightly less smart-ass-y:
def get_not_really_minimal_regex(*regexes):
return "(" + "|".join(regexes) + ")"
Trent
--
Trent Mick
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
