javascript - Repeated regular expression match -
i have string consists exclusively of numbers. want match groups of 3 of every digit excluding first digit.
for example: "1000123" should return "000" , "123" matches.
i tried using
/\d(\d{3})+/ but matches first group being "000" , global flag didn’t either.
how solve this?
Comments
Post a Comment