13 lines
185 B
Markdown
13 lines
185 B
Markdown
|
# Regex
|
||
|
|
||
|
## Non capturing group
|
||
|
|
||
|
- 8 cats
|
||
|
- 9 dogs
|
||
|
- 10 cows
|
||
|
|
||
|
Match and capture **ONLY** the number of cats and dogs using ?:, for _non capturing_ groups
|
||
|
|
||
|
```txt
|
||
|
(\d+) (?:cats|dogs)
|
||
|
```
|