Skip to content

Commit aa6b8c8

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents da4ddb4 + 190c7dd commit aa6b8c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff 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
3636
use 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
6363

64-
```
64+
```rust
6565
use lazy_regex::regex_is_match;
6666

6767
let b = regex_is_match!("[ab]+", "car");
@@ -70,7 +70,7 @@ assert_eq!(b, true);
7070

7171
# Extract
7272

73-
```
73+
```rust
7474
use lazy_regex::regex_find;
7575

7676
let 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
8383
use lazy_regex::regex_captures;
8484

8585
let (_, letter) = regex_captures!(r#"([a-z])\d+"#i, "form A42").unwrap();

0 commit comments

Comments
 (0)