From: Robert Klemme Date: 2009-06-11T22:47:24+09:00 Subject: Re: Match data variables 2009/6/11 Albert Schlef : > Robert Klemme wrote: >> What stops you from >> > [snip] >> b) yielding the match data from expect to a block > > Can the yielded block see the $1, $2, $3 vars? No but it would be easy to provide a MatchData instance or whatever suits the use case best via block parameters. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/