Add regex
This commit is contained in:
parent
0fdf28c615
commit
15a570ea45
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
- [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)
|
||||
- [js](./dev/web/javascript/main.md)
|
||||
- [ES6 features](./dev/web/javascript/es6.md)
|
||||
- [Regex](./dev/regex/main.md)
|
||||
- [Tools](./dev/tools/main.md)
|
||||
- [Git](./dev/tools/git.md)
|
||||
- [SVN](./dev/tools/svn.md)
|
||||
|
|
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…
Reference in a new issue