delorie.com/archives/browse.cgi | search |
Jim Blandy <jimb AT cygnus DOT com> writes: > To generate every possible match, you have to choose every possible > way to divide up those twenty a's amongst six .* patterns. I think > this is 20 choose 5, or 1.9 million, matches you have to try. In > general, I think the time to match POSIXly can increase exponentially > in the length of your regexp, given a long enough data string. 20 choose 5 is, of course, only 15504, not 1.9 million. Oops. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |