en.javascript.info/10-regular-expressions-javascript/5-regexp-quantifiers/4-find-decimal-numbers/task.md
2015-04-07 15:22:06 +03:00

13 lines
No EOL
409 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Найдите десятичные числа
Создайте регэксп, который ищет все числа, в том числе и с десятичной точкой, в том числе и отрицательные.
Пример использования:
```js
var re = /* ваш регэксп */
var str = "-1.5 0 2 -123.4.";
alert( str.match(re) ); // -1.5, 0, 2, -123.4
```