title: Behat featurecontext reusable action regex issue
body: <p>I'm trying to write a function in my feature context with an optional part in the action.</p>
  
  <pre><code>/**
  * Function to scroll into view.
  *
  * @When /^I scroll "([^"]*)" into view( of type "([^"]*)")?$/g
  */
  public function iScrollIntoView($locator, $type = "id") {
      // Some logic here.
  }
  </code></pre>
  
  <p>So the idea is I can use in my behat script either: <code>I scroll "foo" into view</code> or <code>I scroll "foo" into view of type "bar"</code></p>
  
  <p>So I want the type part to be optional, while the regex seems to work fine in an online regex tester, it doesn't seem to work in my behat script.</p>
  
  <p>When I put <code>And I scroll "foo" into view</code> in my behat script it doesn't recognise the function. Is there something wrong with my regex? Or is this a behat issue.</p>