Skip to content

Commit 1d8b996

Browse files
committed
Conflict fixed on "Capturing groups" solution page in french language
1 parent c575fb9 commit 1d8b996

File tree

1 file changed

+3
-10
lines changed
  • 9-regular-expressions/11-regexp-groups/04-parse-expression

1 file changed

+3
-10
lines changed

9-regular-expressions/11-regexp-groups/04-parse-expression/solution.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,10 @@ Nous cherchons un nombre, un opérateur puis un autre nombre. Et d'éventuels es
88

99
Cela done l'expression régulière : `pattern:-?\d+(\.\d+)?\s*[-+*/]\s*-?\d+(\.\d+)?`.
1010

11-
<<<<<<< HEAD
1211
Il y a trois parties, avec `pattern:\s*` entre elles :
1312
1. `pattern:-?\d+(\.\d+)?` - le premier nombre,
14-
1. `pattern:[-+*/]` - l'opérateur,
15-
1. `pattern:-?\d+(\.\d+)?` - le deuxième nombre.
16-
=======
17-
It has 3 parts, with `pattern:\s*` between them:
18-
1. `pattern:-?\d+(\.\d+)?` - the first number,
19-
2. `pattern:[-+*/]` - the operator,
20-
3. `pattern:-?\d+(\.\d+)?` - the second number.
21-
>>>>>>> bf7d8bb1af3b416d393af1c15b03cb1352da1f9c
13+
2. `pattern:[-+*/]` - l'opérateur,
14+
3. `pattern:-?\d+(\.\d+)?` - le deuxième nombre.
2215

2316
Pour faire de chacune de ces parties un élément distinct du tableau de correspondance, entourons-les de parenthèses : `pattern:(-?\d+(\.\d+)?)\s*([-+*/])\s*(-?\d+(\.\d+)?)`.
2417

@@ -74,4 +67,4 @@ function parse(expr) {
7467
}
7568

7669
alert( parse("-1.23 * 3.45") ); // -1.23, *, 3.45;
77-
```
70+
```

0 commit comments

Comments
 (0)