File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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
3232
3333# Build Regexes
3434
35- ```
35+ ``` rust
3636use lazy_regex :: regex;
3737
3838// build a simple regex
@@ -61,7 +61,7 @@ assert_eq!(r.is_match(r#" "Aristote" "Platon" "#), true);
6161
6262# Test a match
6363
64- ```
64+ ``` rust
6565use lazy_regex :: regex_is_match;
6666
6767let b = regex_is_match! (" [ab]+" , " car" );
@@ -70,7 +70,7 @@ assert_eq!(b, true);
7070
7171# Extract a value
7272
73- ```
73+ ``` rust
7474use lazy_regex :: regex_find;
7575
7676let f_word = regex_find! (r # " \bf\w+\b" # , " The fox jumps." ). unwrap ();
@@ -79,7 +79,7 @@ assert_eq!(f_word, "fox");
7979
8080# Capture
8181
82- ```
82+ ``` rust
8383use lazy_regex :: regex_captures;
8484
8585let (_ , letter ) = regex_captures! (r # " ([a-z])\d+" # i , " form A42" ). unwrap ();
You can’t perform that action at this time.
0 commit comments