Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了所有简单的范围验证,如 1-99 或 3-1000,但我无法为上述要求(1024 - 25600)创建一个 reg,任何帮助将不胜感激....谢谢
正则表达式并不意味着评估数字范围。仅仅因为您需要检查位数,您就能够摆脱 1-99 这样的范围,但它们无法验证任意数字范围。