brain/src/dev/regex/main.md
2019-05-03 18:35:27 +02:00

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)
```