Re: [rspec-users] embedding variable in a regex

2008-08-08 Thread Zach Dennis
On Fri, Aug 8, 2008 at 10:18 AM, aidy lewis <[EMAIL PROTECTED]> wrote: > Given /a (PROGRAM|PROGRAMMES) title of '$title'/ do |title| > > end > > Could anyone give me the correct syntax for embedding this variable in a > regex? You'll need to create a sub-expression capturing the title.

[rspec-users] embedding variable in a regex

2008-08-08 Thread aidy lewis
Given /a (PROGRAM|PROGRAMMES) title of '$title'/ do |title| end Could anyone give me the correct syntax for embedding this variable in a regex? Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinf