Add regex
This commit is contained in:
parent
0fdf28c615
commit
15a570ea45
2 changed files with 14 additions and 0 deletions
13
src/dev/regex/main.md
Normal file
13
src/dev/regex/main.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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)
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue