brain/src/dev/regex/main.md

14 lines
186 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)
```