This is the way done by Behat, and probably the way to go, since for those who look into sentences list (```php bin/behat -dl``` would be much easier to understand:
examples:
The way it has been done till now:
```
Given /^I am logged (?:in |)as (?:an |a |)"([^"]*)"$/
Given /^I am logged in as "([^"]*)" with password "([^"]*)"$/
Given /^I am not logged in$/
```
Behat way:
```
Given /^I am logged (?:in |)as (?:an |a |)"(?P<role>[^"]*)"$/
Given /^I am logged in as "(?P<user>[^"]*)" with password "(?P<password>[^"]*)"$/
Given /^I am not logged in$/
```