如何使 Cucumber 使用正则表达式生成步骤?

How to make Cucumber generate steps with regex?

对于 java,在 eclipse 中,cucumber 用于生成如下所示的步骤:

@Then("the database attribute \"([^\"]*)\" is updated")

但是现在它生成的步骤是这样的:

@Then("the database attribute {string} is updated")

我怎样才能回到使用正则表达式的旧生成方式?

Cucumber 版本 1.2.5 做到了。现在最新版本 6xx 和 7xx。现在我们不再使用旧的样式。因为eclipse和intellij中的黄瓜插件迁移到了最新的。请使用最新版本。