We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
into-regex
1 parent 618e75b commit 977f288Copy full SHA for 977f288
README.md
@@ -14,13 +14,16 @@ Rust implementation of [Cucumber Expressions].
14
This crate provides [AST] parser, and [`Regex`] expansion of [Cucumber Expressions].
15
16
```rust
17
+# // `Regex` expansion requires `into-regex` feature.
18
+# #[cfg(feature = "into-regex")] {
19
use cucumber_expressions::Expression;
20
21
let re = Expression::regex("I have {int} cucumbers in my belly").unwrap();
22
let caps = re.captures("I have 42 cucumbers in my belly").unwrap();
23
24
assert_eq!(&caps[0], "I have 42 cucumbers in my belly");
25
assert_eq!(&caps[1], "42");
26
+# }
27
```
28
29
0 commit comments