From: "Peña, Botp" Date: 2002-10-22T21:21:20+09:00 Subject: Re: newby asks: giving regexps as argument for funvtions > ts [mailto:decoux@moulon.inra.fr] informs: > .... > P> irb(main):001:0> def findPosRE(str, re) > P> irb(main):002:1> m = %r{#{re}}.match(str) > P> SyntaxError: compile error > P> (irb):2: syntax error > P> from (irb):2 > P> ^^^^^^^^^^^^^^^^ > > Well, apparently this is corrected with irb 0.9 which is in 1.7.3 > > pigeon% irb > irb(main):001:0> def findPosRE(str, re) > irb(main):002:1> m = %r{#{re}}.match(str) > irb(main):003:1> end > nil > irb(main):004:0> > pigeon% > > pigeon% irb -v > irb 0.9(02/07/03) > pigeon% > Many thanks for the help, sir Guy. ' will update now... -botp