var reg=/(?=\B(?:\d{3})+\b)(\d{3}(\.\d+$)?)/g;//如何解释这个正则'2343453544334000.766578'.replace(reg,',$1') 查看完整描述