Excerpts from Marius MÃ¥rnes Mathiesen's message of Wed Mar 18 17:43:04 +0200 2009:
> Issue #1301 has been updated by Andreas Grau.
> 
> 
> Using this regexp
> regexp = /^(\d*\s+){8,8}+\d+$/
> 
> This matches on any line starting with up to 8 number separated by by blanks
> and a final number
> 
> if the string is now in the wrong format, e.g. 
> str="                                  #"
> 
> the matching takes a very long time
> regexp.match(str)

OK, much more reasonable case, enough to warrant looking into
maybe eliminating some pathological cases. Your particular case
could, of course, be better (and more naturally) written as:

   regexp = /^(\d+\s+){0,8}\s*\d+$/

Or something similar to fit the bill, but it eliminates the
poor performance of the example provided until and if such
fixes in the state machine are done.


--
Magic is insufficiently advanced technology.