Project

General

Profile

Bug #14418

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

I have simple regexp that performing very slow. 

 
 ~~~ ruby 
 "fußball "*20 =~ /^([\S\s]{1000})/i 
 ~~~ 

 It works fast if I remove `/i` ```\i``` flag. I figured out that is also depends on string length or on quantifier value (in this case it is `{1000}`). ```{1000}```). 
 When you remove `ß` ```ß``` form the string it also works fast. 

 I tested on 2.3.1, 2.4.3 and 2.5.0. 

 I'm not sure it is a bug or it just works that way.

Back