From: ts Date: 2002-10-22T20:44:32+09:00 Subject: Re: newby asks: giving regexps as argument for funvtions >>>>> "P" == =?iso-8859-1?Q?=22Pe=F1a=2C Botp=22?= writes: P> I get a syntax error here, sir Guy. If I replace the first nest {} with () P> (parens), it works fine. I'm running it on irb v0.7.4 pigeon% irb -v irb 0.7.4(01/05/08) pigeon% pigeon% irb irb(main):001:0> str = "aaa" "aaa" irb(main):002:0> re = "a" "a" irb(main):003:0> m = %r{#{re}}.match(str) # irb(main):004:0> pigeon% Guy Decoux