JavaScript Regular Expression?

2015-12-16 10:32 pm
0 - 255 : /^((\d)|([1-9]\d)|(1\d{2})|(2[0-4]\d)|(25[0-5]))$/

0 - 511:
0 - 1023:
0 - 2047:
0 - 4095:

回答 (1)

2015-12-17 6:04 am
✔ 最佳答案
0 - 511: /^((\d)|([1-9]\d)|([1-4]\d{2})|(50\d)|(511))$/


收錄日期: 2021-04-25 13:57:47
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20151216143213AAy0Ra5

檢視 Wayback Machine 備份