On 7/23/07, Shidan <[EMAIL PROTECTED]> wrote: > I'm looking for a Python module that provides methods for ordering > regexes based on > how general they are ( how much they match). Do I have to write it
Your question is relative. Classifying which regular expression is more general depends upon the other regular expressions used in comparison along with the specific input. As you change input & regular expressions, the ordering will change. Yes, you will need to write this yourself. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor