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
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
Paul Lalli wrote:
>
> m//;
>
> it matches everything.
Not in Perl it doesn't. :-)
--
http://mail.python.org/mailman/listinfo/python-list
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
"[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
[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
the shortest description in regex way
--
http://mail.python.org/mailman/listinfo/python-list
"[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
very nice
--
http://mail.python.org/mailman/listinfo/python-list
[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
10 matches
Mail list logo