[rspec-users] Help with regexp in matcher

Tim Glen tim at pivotib.com
Mon Jan 12 17:35:51 EST 2009

> 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

hope that helps,

More information about the rspec-users mailing list