Skip to content

Commit 1a08335

Browse files
authored
Update task.md
1 parent 0bb446f commit 1a08335

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • 9-regular-expressions/09-regexp-groups/3-find-decimal-positive-numbers
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Find positive numbers
1+
# Найти положительные числа
22

3-
Create a regexp that looks for positive numbers, including those without a decimal point.
3+
Создайте регэксп, который ищет положительные числа, включая числа без десятичной части.
44

5-
An example of use:
5+
Пример использования:
66
```js
7-
let reg = /your regexp/g;
7+
let reg = /ваш регэксп/g;
88

99
let str = "1.5 0 -5 12. 123.4.";
1010

11-
alert( str.match(reg) ); // 1.5, 12, 123.4 (ignores 0 and -5)
11+
alert( str.match(reg) ); // 1.5, 12, 123.4 (игнорирует 0 и -5)
1212
```

0 commit comments

Comments
 (0)