en.javascript.info/10-regular-expressions-javascript/08-regexp-greedy-and-lazy/1-lazy-greedy/solution.md
Ilya Kantor 62c507c78f ok
2017-03-19 20:40:47 +03:00

230 B

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.