From: ts Date: 2006-07-27T22:20:59+09:00 Subject: Re: Named backreferences with Oniguruma >>>>> "B" == Berger, Daniel writes: B> reg = /^(?\w+?)\s(?\w+)$/ moulon% cat b.rb #!/usr/bin/ruby str = "hello world" reg = /^(?\w+?)\s(?\w+)$/ match = reg.match(str) first = match[:first] last = match[:last] p first,last moulon% moulon% ruby -v b.rb ruby 1.9.0 (2006-07-14) [i686-linux] "hello" "world" moulon% moulon% grep ONIGURUMA_VERSION ruby/oniguruma.h #define ONIGURUMA_VERSION_MAJOR 4 #define ONIGURUMA_VERSION_MINOR 0 #define ONIGURUMA_VERSION_TEENY 3 moulon% Guy Decoux