'1234567890'.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,')
'1234567890'
.replace(/(\d)(?=(\d\d\d)+(?!\d))/g,
'$1,'
)