From: ts Date: 2002-10-22T21:17:21+09:00 Subject: Re: newby asks: giving regexps as argument for funvtions >>>>> "P" == =?iso-8859-1?Q?=22Pe=F1a=2C Botp=22?= writes: 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% Guy Decoux