Re: minimalist regular expression

2005-08-26 Thread [EMAIL PROTECTED]
Whenever I ask a match in a string for(a{3,}b and match for (a{1,}, the first is implicit second: ab is implicit in a.*;automatically -- http://mail.python.org/mailman/listinfo/python-list

Re: minimalist regular expression

2005-08-26 Thread Paul Lalli
Brian McCauley wrote: > Paul Lalli wrote: > > > > m//; > > > > it matches everything. > > Not in Perl it doesn't. :-) Sure it does provided you haven't tried matching anything else beforehand... Paul Lalli -- http://mail.python.org/mailman/listinfo/python-list

Re: minimalist regular expression

2005-08-26 Thread Brian McCauley
Paul Lalli wrote: > > m//; > > it matches everything. Not in Perl it doesn't. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: minimalist regular expression

2005-08-26 Thread Paul McGuire
Google for "optimized regexp" returns: http://laurent.riesterer.free.fr/regexp/make-regexp.html http://search.cpan.org/~dankogai/Regexp-Optimizer-0.15/ There are several more links, but all appear to be written in languages other than Python. Perhaps you could port one of them. It also seems tha

Re: minimalist regular expression

2005-08-26 Thread John Bokma
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > the shortest description in regex way Which is? Oh, and please quote the previous message and author. Reply under the part you are replying too, etc. Even with Google this is possible. -- John Small Perl scripts: http://johnbo

Re: minimalist regular expression

2005-08-26 Thread Paul Lalli
[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? > thanx in advance m//; it matches everything. Perhaps you need to better define your pr

Re: minimalist regular expression

2005-08-26 Thread [EMAIL PROTECTED]
the shortest description in regex way -- http://mail.python.org/mailman/listinfo/python-list

Re: minimalist regular expression

2005-08-25 Thread John Bokma
"[EMAIL PROTECTED]" <[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? > thanx in advance length? (define minimal) :-D. -- John

Re: minimalist regular expression

2005-08-25 Thread [EMAIL PROTECTED]
very nice -- http://mail.python.org/mailman/listinfo/python-list

Re: minimalist regular expression

2005-08-25 Thread Trent Mick
[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