Browse Source

Add regex

master
Wilfried OLLIVIER 2 months ago
parent
commit
15a570ea45
2 changed files with 14 additions and 0 deletions
  1. 1
    0
      src/SUMMARY.md
  2. 13
    0
      src/dev/regex/main.md

+ 1
- 0
src/SUMMARY.md View File

@@ -10,6 +10,7 @@
10 10
             - [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)
11 11
         - [js](./dev/web/javascript/main.md)
12 12
             - [ES6 features](./dev/web/javascript/es6.md)
13
+    - [Regex](./dev/regex/main.md)
13 14
     - [Tools](./dev/tools/main.md)
14 15
         - [Git](./dev/tools/git.md)
15 16
         - [SVN](./dev/tools/svn.md)

+ 13
- 0
src/dev/regex/main.md View File

@@ -0,0 +1,13 @@
1
+# Regex
2
+
3
+## Non capturing group
4
+
5
+- 8 cats
6
+- 9 dogs
7
+- 10 cows
8
+
9
+Match and capture **ONLY** the number of cats and dogs using ?:, for _non capturing_ groups
10
+
11
+```txt
12
+(\d+) (?:cats|dogs)
13
+```

Loading…
Cancel
Save