[Tutor] Regex Ordering
jjhartley at gmail.com
Mon Jul 23 17:51:11 CEST 2007
On 7/23/07, Shidan <shidan at gmail.com> 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.
More information about the Tutor