Add transformation edge case where trans regex doesn't have capture group

Covers #320
Fix the transformation case where trans regex doesn't have a capture group

Fixes #320
Refactor RepositoryArgumentTransformer::transformRegex to be more readable
Merge pull request #516 from Behat/bugfix/transformation-without-capture-group

Transformation without capture group support