From the course: Cucumber Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Regular expressions basics

Regular expressions basics

From the course: Cucumber Essential Training

Start my 1-month free trial

Regular expressions basics

- [Instructor] If you have worked with one of the older versions of Cucumber, you are probably wondering what happened to regular expressions. No worries, regular expressions are still supported by Cucumber, it just happens that the version of Cucumber that I'm using generates Cucumber Expressions. Cucumber expressions were introduced in 2017. Cucumber for Java started supporting Cucumber expressions a little later, Cucumber and regular expressions can both be used with any of the modern Cucumber editions. Step definitions, though, are only going to be generated with Cucumber expressions, with one of these newer editions of Cucumber, but if you wanted to change those Cucumber expressions to regular expressions, you could do that. In fact, you can mix Cucumber expressions and regular expressions in the same step definitions file. You cannot mix Cucumber and regular expressions in the same step definition method. If you have worked with regular expressions, you know that regular…

Contents