en.javascript.info/9-regular-expressions/10-regexp-greedy-and-lazy/1-lazy-greedy/solution.md
Ilya Kantor f21cb0a2f4 WIP
2019-09-04 15:44:48 +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.