File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ You may also use shortcut macros for testing a match or capturing groups as subs
32
32
33
33
# Build Regexes
34
34
35
- ```
35
+ ``` rust
36
36
use lazy_regex :: regex;
37
37
38
38
// build a simple regex
@@ -61,7 +61,7 @@ assert_eq!(r.is_match(r#" "Aristote" "Platon" "#), true);
61
61
62
62
# Test a match
63
63
64
- ```
64
+ ``` rust
65
65
use lazy_regex :: regex_is_match;
66
66
67
67
let b = regex_is_match! (" [ab]+" , " car" );
@@ -70,7 +70,7 @@ assert_eq!(b, true);
70
70
71
71
# Extract a value
72
72
73
- ```
73
+ ``` rust
74
74
use lazy_regex :: regex_find;
75
75
76
76
let f_word = regex_find! (r # " \bf\w+\b" # , " The fox jumps." ). unwrap ();
@@ -79,7 +79,7 @@ assert_eq!(f_word, "fox");
79
79
80
80
# Capture
81
81
82
- ```
82
+ ``` rust
83
83
use lazy_regex :: regex_captures;
84
84
85
85
let (_ , letter ) = regex_captures! (r # " ([a-z])\d+" # i , " form A42" ). unwrap ();
You can’t perform that action at this time.
0 commit comments