This commit is contained in:
Ilya Kantor 2017-03-21 17:14:05 +03:00
parent ab9ab64bd5
commit 97c8f22bbb
289 changed files with 195 additions and 172 deletions

View file

@ -0,0 +1,6 @@
The result is: `match:123 4`.
First the lazy `pattern:\d+?` tries to take as little digits as it can, but it has to reach the space, so it takes `match:123`.
Then the second `\d+?` takes only one digit, because that's enough.

View file

@ -0,0 +1,7 @@
# A match for /d+? d+?/
What's the match here?
```js
"123 456".match(/\d+? \d+?/g) ); // ?
```