Use of regular expressions instead of cucumber expressions #823
Closed
phillidgithub
started this conversation in
General
Replies: 1 comment 1 reply
-
PW-Cucumber is using cucumber for that. nothing different.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, does anyone know how to use regular expressions in place of cucumber expressions in step definitions? I tried using ^some regex$ but have not had any success.
The cucumber docs suggest this is possible but I can't seem to make it work when using the cucumber-playwright setup defined in this repos.
https://github.com/cucumber/cucumber-expressions#readme
On platforms that don't have a literal syntax for regular expressions (such as Java), Cucumber will create a Cucumber Expression by default. To use Regular Expressions, add anchors (starting with ^ and ending with $) or forward slashes (/).
Beta Was this translation helpful? Give feedback.
All reactions