From: Andreas Grau Date: 2009-03-19T00:43:04+09:00 Subject: [ruby-core:22929] [Bug #1301] Poor RegExp Matching Performance 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) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1301 ---------------------------------------- http://redmine.ruby-lang.org