Re: [Tutor] Regex Ordering

2007-07-24 Thread Kent Johnson
Shidan 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 > myself or does something exist already. What do you mean by "how much they match" ? If you mean, what is the entire set of s

Re: [Tutor] Regex Ordering

2007-07-23 Thread David Perlman
Then maybe you could write a regex that matches every regex that does not match itself. ha! sorry, couldn't resist. On Jul 23, 2007, at 11:29 AM, Bill Campbell wrote: > On Mon, Jul 23, 2007, James Hartley wrote: >> On 7/23/07, Shidan <[EMAIL PROTECTED]> wrote: >>> I'm looking for a Python mod

Re: [Tutor] Regex Ordering

2007-07-23 Thread Bill Campbell
On Mon, Jul 23, 2007, James Hartley wrote: >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

Re: [Tutor] Regex Ordering

2007-07-23 Thread James Hartley
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 t

[Tutor] Regex Ordering

2007-07-23 Thread Shidan
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 myself or does something exist already. Shidan ___ Tutor maillist - Tutor@python.org http://mail