Skip to content

Commit bc0b21c

Browse files
authored
Merge pull request #3133 from leviding/patch-4
fix: typo
2 parents f9e0a8b + f54a20a commit bc0b21c

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The full regular expression: `pattern:-?\d+(\.\d+)?\s*[-+*/]\s*-?\d+(\.\d+)?`.
1010

1111
It has 3 parts, with `pattern:\s*` between them:
1212
1. `pattern:-?\d+(\.\d+)?` - the first number,
13-
1. `pattern:[-+*/]` - the operator,
14-
1. `pattern:-?\d+(\.\d+)?` - the second number.
13+
2. `pattern:[-+*/]` - the operator,
14+
3. `pattern:-?\d+(\.\d+)?` - the second number.
1515

1616
To make each of these parts a separate element of the result array, let's enclose them in parentheses: `pattern:(-?\d+(\.\d+)?)\s*([-+*/])\s*(-?\d+(\.\d+)?)`.
1717

0 commit comments

Comments
 (0)