ما قصد داریم این پروژهٔ متنباز را در دسترس همهٔ مردم در سرتاسر دنیا قرار دهیم.
به ترجمهٔ محتوای این آموزش به زبان خودتان کمک کنید/a>.
What’s the match here?
alert( "123 456".match(/\d+? \d+?/g) ); // ?
The result is: 123 4.
123 4
First the lazy \d+? tries to take as little digits as it can, but it has to reach the space, so it takes 123.
\d+?
123
Then the second \d+? takes only one digit, because that’s enough.