We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da4ddb4 + 190c7dd commit aa6b8c8Copy full SHA for aa6b8c8
README.md
@@ -32,7 +32,7 @@ You may also use shortcut macros for testing a match or capturing groups as subs
32
33
# Build Regexes
34
35
-```
+```rust
36
use lazy_regex::regex;
37
38
// build a simple regex
@@ -61,7 +61,7 @@ assert_eq!(r.is_match(r#" "Aristote" "Platon" "#), true);
61
62
# Test
63
64
65
use lazy_regex::regex_is_match;
66
67
let b = regex_is_match!("[ab]+", "car");
@@ -70,7 +70,7 @@ assert_eq!(b, true);
70
71
# Extract
72
73
74
use lazy_regex::regex_find;
75
76
let f_word = regex_find!(r#"\bf\w+\b"#, "The fox jumps.").unwrap();
@@ -79,7 +79,7 @@ assert_eq!(f_word, "fox");
79
80
# Capture
81
82
83
use lazy_regex::regex_captures;
84
85
let (_, letter) = regex_captures!(r#"([a-z])\d+"#i, "form A42").unwrap();
0 commit comments