Javascript regex for comma separated numbers and number range

前端 未结 0 1245
挽巷
挽巷 2021-01-15 00:22

Can someone help me with regex for comma separated numbers and number range to match following:

Eg1: "1, 5, 8, 9-13, 18, 254"  
Eg2: "1,5,9,10-         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题