components
This commit is contained in:
parent
304d578b54
commit
6fb4aabcba
344 changed files with 669 additions and 406 deletions
|
@ -0,0 +1,12 @@
|
|||
# Find positive numbers
|
||||
|
||||
Create a regexp that looks for positive numbers, including those without a decimal point.
|
||||
|
||||
An example of use:
|
||||
```js
|
||||
let reg = /your regexp/g;
|
||||
|
||||
let str = "1.5 0 -5 12. 123.4.";
|
||||
|
||||
alert( str.match(reg) ); // 1.5, 12, 123.4 (ignores 0 and -5)
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue