[rspec-users] Help with regexp in matcher

aslak hellesoy aslak.hellesoy at gmail.com
Mon Jan 12 18:13:22 EST 2009


On Mon, Jan 12, 2009 at 11:35 PM, Tim Glen <tim at pivotib.com> wrote:

>
>> This is giving me an error:
>>
>> When /?:(log|sign)?:(i|o)n success message/ do
>>  Then "welcome message"
>> end
>>
>
>
> I could be wrong, but I believe you're looking for this instead?
> When /(?:log|sign)(?:i|o)n success message/ do
>

Actually - it should be: /(?:log|sign) (?:i|o)n success message/ (a space
was missing too)

http://www.rubular.com

Aslak


> hope that helps,
> timg
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090113/f6037f2c/attachment.html>


More information about the rspec-users mailing list