Wim Yedema schrieb: > Bug #557: Regexp does not match longest string > http://redmine.ruby-lang.org/issues/show/557 > > Author: Wim Yedema > Status: Open, Priority: High > > Regexp does not match the longest string, as do regular expression for Linux (or posix). > For example: > > irb(main):001:0> r=/foo|footer/ > => /foo|footer/ > irb(main):002:0> r.match('footer').offset(0) > => [0, 3] > > The same thing in C (see attachment), results in > match: 0, 6 > > > ---------------------------------------- > http://redmine.ruby-lang.org > > Ruby's regular expession engine isn't a posix engine. The same is true for Perl an several other programming languages.