I would like to ask you a js canonical question about the conversion of money.

I"d like to ask you a question. There"s a need.

complete the division of the amount. For example, 12345678 = > 12345678 and then 123456789 = > 123456789.

there is no problem with this. The incomplete examples are as follows:

var result = "12345678".replace(/(\d{3})/g, "$1,")
console.log(result); // => "123,456,78"

but it matches as a whole, not a location search

how should I solve this problem if I want to look up the location from front to back?

Sep.26,2021

js canonical does not support


https://www.cnblogs.com/dong-.
. Here, the example uses forward-looking matching, while js does not support forward-looking

.
Menu