cucumber/cucumber — pull request #663 by rwz (2014-04-05 23:44:27+00:00)
Title: Suggested regexes are bad and result in ambiguous matches

Imagine I'm writing a new scenario that that includes something similar to this:
```cucumber
When I press "Submit" button
Then I should see "can't be blank" validation error on "Email"
```

first time I run this new scenario, cucumber will suggest me code snippets to start implementing missing steps. The snippet for validation step would be
```ruby
Then(/^I should see "(.*?)" validation error on "(.*?)"$/ do |arg1, arg2|
pending # express the regexp above with the code you wish you had
end
```

Later I add another scenario that includes this:
```cucumber
Then I should see "foobar"
```
and cucumber, again, helpfully suggest a snippet to start implementing the step:
```ruby
Then(/^I should see "(.*?)"$/) do |arg1|
```

The problem is, the suggested regexp also matches everything, a previously defined validation step does resulting with lot of previously green steps suddenly go red with `Cucumber::Ambiguous` error.