Closed azl397985856 closed 4 years ago
/^0*\d{1,5}\.\d{1,2}$|^0*\d{1,5}$/
/^0*\d{1,5}(\.\d{1,2})?$/
/^0*\d{1,5}(?=(\.\d{1,2})?$)/
/^0*\d{1,5}\.?((?<=\.)\d{1,2})?$/
reg.test('12345.12') // true reg.test('123456.12') // false reg.test('123456.123') // false reg.test('00012345.12') // true reg.test('000123456') // false reg.test('00012345') // true reg.test('00000.12') // true reg.test('0.1') // true
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
eg: