Skip to content

Commit 4c95e77

Browse files
committed
third task
1 parent 7ecd218 commit 4c95e77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

9-regular-expressions/11-regexp-groups/03-find-decimal-numbers/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
A positive number with an optional decimal part is: `pattern:\d+(\.\d+)?`.
1+
Un nombre positif avec une éventuelle partie décimale correspond à : `pattern:\d+(\.\d+)?`.
22

3-
Let's add the optional `pattern:-` in the beginning:
3+
Ajoutons-y l'option `pattern:-` au début :
44

55
```js run
66
let regexp = /-?\d+(\.\d+)?/g;

9-regular-expressions/11-regexp-groups/03-find-decimal-numbers/task.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Find all numbers
1+
# Trouvez tous les nombres
22

3-
Write a regexp that looks for all decimal numbers including integer ones, with the floating point and negative ones.
3+
Écrire un regexp qui cherche tous les nombres décimaux, comprenant les entiers, les nombres décimaux avec le point comme séparateur et les nombres négatifs.
44

5-
An example of use:
5+
Un exemple d'utilisation :
66

77
```js
88
let regexp = /your regexp/g;

0 commit comments

Comments
 (0)